mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-24 12:48:20 +00:00
15 lines
443 B
Solidity
15 lines
443 B
Solidity
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
pragma solidity ^0.7.1;
|
|
|
|
import "./IERC1155TokenReceiver.sol";
|
|
import "@openzeppelin/contracts/introspection/ERC165.sol";
|
|
|
|
abstract contract ERC1155TokenReceiver is ERC165, IERC1155TokenReceiver {
|
|
constructor() {
|
|
_registerInterface(
|
|
ERC1155TokenReceiver(0).onERC1155Received.selector ^
|
|
ERC1155TokenReceiver(0).onERC1155BatchReceived.selector
|
|
);
|
|
}
|
|
}
|