Created
April 29, 2022 05:56
-
-
Save rhlc/347d05f894c1f60606b1f4daddcd85f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract BatchTransfer is ERC1155, Ownable { | |
constructor() ERC1155("") {} | |
function safeBatchTransferFrom( | |
address from, | |
address to, | |
uint256[] memory ids, | |
uint256[] memory amounts, | |
bytes memory data | |
) public virtual override { | |
// require( | |
// from == _msgSender() || isApprovedForAll(from, _msgSender()), | |
// "BEP1155: transfer caller is not owner nor approved" | |
// ); | |
_safeBatchTransferFrom(from, to, ids, amounts, data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment