all files / contracts/mocks/ MockSpanningERC1155InvalidReceiver.sol

100% Statements 2/2
100% Branches 0/0
100% Functions 2/2
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                         
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2022 Spanning Labs Inc.
 
pragma solidity ^0.8.0;
 
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
 
/// @title ERC1155 token receiver interface
/// @dev Interface for any contract that wants to support safeTransfers from ERC1155 asset contracts.
contract MockSpanningERC1155InvalidReceiver is ERC1155Holder {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return bytes4(0);
    }
 
    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return bytes4(0);
    }
}