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.
19 lines
562 B
19 lines
562 B
5 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
4 years ago
|
pragma solidity ^0.8.0;
|
||
5 years ago
|
|
||
|
import "./ERC1155Receiver.sol";
|
||
|
|
||
5 years ago
|
/**
|
||
|
* @dev _Available since v3.1._
|
||
|
*/
|
||
5 years ago
|
contract ERC1155Holder is ERC1155Receiver {
|
||
5 years ago
|
function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {
|
||
5 years ago
|
return this.onERC1155Received.selector;
|
||
|
}
|
||
|
|
||
5 years ago
|
function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {
|
||
5 years ago
|
return this.onERC1155BatchReceived.selector;
|
||
|
}
|
||
|
}
|