Skip to content

Commit

Permalink
Remove warnings from test (#291)
Browse files Browse the repository at this point in the history
Remove variable names to get rid of pesky warnings that flood compilation screen
  • Loading branch information
oveddan authored Oct 25, 2023
1 parent f6b6ae6 commit 7a775ca
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/1155-contracts/test/nft/ZoraCreator1155.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,17 @@ import {SimpleRenderer} from "../mock/SimpleRenderer.sol";
contract MockTransferHookReceiver is ITransferHookReceiver {
mapping(uint256 => bool) public hasTransfer;

function onTokenTransferBatch(
address target,
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) external {
function onTokenTransferBatch(address, address, address, address, uint256[] memory ids, uint256[] memory, bytes memory) external {
for (uint256 i = 0; i < ids.length; i++) {
hasTransfer[ids[i]] = true;
}
}

function onTokenTransfer(address target, address operator, address from, address to, uint256 id, uint256 amount, bytes memory data) external {
function onTokenTransfer(address, address, address, address, uint256 id, uint256, bytes memory) external {
hasTransfer[id] = true;
}

function supportsInterface(bytes4 testInterface) external view override returns (bool) {
function supportsInterface(bytes4 testInterface) external pure override returns (bool) {
return testInterface == type(ITransferHookReceiver).interfaceId;
}
}
Expand Down

0 comments on commit 7a775ca

Please sign in to comment.