You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
394 B
15 lines
394 B
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
import "./IERC1155Receiver.sol";
|
|
import "../../introspection/ERC165.sol";
|
|
|
|
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
|
|
constructor() public {
|
|
_registerInterface(
|
|
ERC1155Receiver(0).onERC1155Received.selector ^
|
|
ERC1155Receiver(0).onERC1155BatchReceived.selector
|
|
);
|
|
}
|
|
}
|
|
|