From 7a775ca611ee6200f6fd6aad379d8e28c0c8fc42 Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Wed, 25 Oct 2023 13:21:25 -0700 Subject: [PATCH] Remove warnings from test (#291) Remove variable names to get rid of pesky warnings that flood compilation screen --- .../1155-contracts/test/nft/ZoraCreator1155.t.sol | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol b/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol index 448f09415..8885f7a26 100644 --- a/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol +++ b/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol @@ -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; } }