Commit 31e36f12 by Francisco Giordano

define explicit initializer

parent 477ed3f8
...@@ -10,6 +10,10 @@ import "./ERC1155Receiver.sol"; ...@@ -10,6 +10,10 @@ import "./ERC1155Receiver.sol";
* @dev _Available since v3.1._ * @dev _Available since v3.1._
*/ */
contract ERC1155Holder is Initializable, ERC1155Receiver { contract ERC1155Holder is Initializable, ERC1155Receiver {
function initialize() public initializer {
ERC1155Receiver.initialize();
}
function onERC1155Received(address, address, uint256, uint256, bytes memory) public returns (bytes4) { function onERC1155Received(address, address, uint256, uint256, bytes memory) public returns (bytes4) {
return this.onERC1155Received.selector; return this.onERC1155Received.selector;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment