diff --git a/src/MintERC1155.sol b/src/MintERC1155.sol index e59b3c6..3ec8673 100644 --- a/src/MintERC1155.sol +++ b/src/MintERC1155.sol @@ -218,7 +218,7 @@ contract MintERC1155 is ERC1155Upgradeable, OwnableUpgradeable, ERC2981Upgradeab if (to.code.length == 0) return true; (bool success, bytes memory res) = to.staticcall{ gas: 400_000 }( - abi.encodeCall(IERC1155Receiver.onERC1155Received, (MINTER, address(0), 1, 1, "")) + abi.encodeCall(IERC1155Receiver.onERC1155Received, (MINTER, address(0), 0, 1, "")) ); if (success) { bytes4 response = abi.decode(res, (bytes4)); @@ -229,13 +229,13 @@ contract MintERC1155 is ERC1155Upgradeable, OwnableUpgradeable, ERC2981Upgradeab return false; } - uint256[] memory idOrAmountArray = new uint256[](1); - idOrAmountArray[0] = 1; + uint256[] memory ids = new uint256[](1); + ids[0] = 0; + uint256[] memory amounts = new uint256[](1); + amounts[0] = 1; (success, res) = to.staticcall{ gas: 400_000 }( - abi.encodeCall( - IERC1155Receiver.onERC1155BatchReceived, (MINTER, address(0), idOrAmountArray, idOrAmountArray, "") - ) + abi.encodeCall(IERC1155Receiver.onERC1155BatchReceived, (MINTER, address(0), ids, amounts, "")) ); if (success) { bytes4 response = abi.decode(res, (bytes4));