Skip to content

Commit

Permalink
Clean Up Transfer Hook Mock (#229)
Browse files Browse the repository at this point in the history
* fix: remove unused param names

* fix: linting
  • Loading branch information
IsabellaSmallcombe authored Sep 29, 2023
1 parent 841c7dc commit d587b5a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions test/nft/ZoraCreator1155.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,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 d587b5a

Please sign in to comment.