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