735546619e
Signed-off-by: T-Hax <>
19 lines
434 B
Solidity
19 lines
434 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
import "./IERC1155Receiver.sol";
|
|
import "../../introspection/ERC165.sol";
|
|
|
|
/**
|
|
* @dev _Available since v3.1._
|
|
*/
|
|
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
|
|
constructor() public {
|
|
_registerInterface(
|
|
ERC1155Receiver(0).onERC1155Received.selector ^
|
|
ERC1155Receiver(0).onERC1155BatchReceived.selector
|
|
);
|
|
}
|
|
}
|