Skip to content

Commit

Permalink
fix: revert args as calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTimepunk committed Dec 26, 2023
1 parent c4ba0ab commit 47ff4b4
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/ERC1155A.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {

/// @inheritdoc IERC1155
function balanceOfBatch(
address[] calldata owners,
uint256[] calldata ids
address[] memory owners,
uint256[] memory ids
)
public
view
Expand Down Expand Up @@ -158,8 +158,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
/// @inheritdoc IERC1155A
function increaseAllowanceForMany(
address operator,
uint256[] calldata ids,
uint256[] calldata addedValues
uint256[] memory ids,
uint256[] memory addedValues
)
public
virtual
Expand All @@ -178,8 +178,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
/// @inheritdoc IERC1155A
function decreaseAllowanceForMany(
address operator,
uint256[] calldata ids,
uint256[] calldata subtractedValues
uint256[] memory ids,
uint256[] memory subtractedValues
)
public
virtual
Expand Down Expand Up @@ -207,7 +207,7 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
address to,
uint256 id,
uint256 amount,
bytes calldata data
bytes memory data
)
public
virtual
Expand Down Expand Up @@ -237,9 +237,9 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
public
virtual
Expand Down Expand Up @@ -307,8 +307,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
/// @inheritdoc IERC1155A
function transmuteBatchToERC20(
address owner,
uint256[] calldata ids,
uint256[] calldata amounts,
uint256[] memory ids,
uint256[] memory amounts,
address receiver
)
external
Expand All @@ -335,8 +335,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
/// @inheritdoc IERC1155A
function transmuteBatchToERC1155A(
address owner,
uint256[] calldata ids,
uint256[] calldata amounts,
uint256[] memory ids,
uint256[] memory amounts,
address receiver
)
external
Expand Down Expand Up @@ -407,8 +407,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
function _batchMint(
address to,
address operator,
uint256[] calldata ids,
uint256[] calldata amounts,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
internal
Expand Down Expand Up @@ -451,8 +451,8 @@ abstract contract ERC1155A is IERC1155A, IERC1155Errors {
function _batchBurn(
address from,
address operator,
uint256[] calldata ids,
uint256[] calldata amounts
uint256[] memory ids,
uint256[] memory amounts
)
internal
virtual
Expand Down

0 comments on commit 47ff4b4

Please sign in to comment.