You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
611 B
Solidity
20 lines
611 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../IERC1155Receiver.sol";
|
|
import "../../../utils/introspection/ERC165.sol";
|
|
|
|
/**
|
|
* @dev _Available since v3.1._
|
|
*/
|
|
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
|
|
/**
|
|
* @dev See {IERC165-supportsInterface}.
|
|
*/
|
|
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
|
|
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
|
|
}
|
|
}
|