Skip to content

Instantly share code, notes, and snippets.

@rhlc
Created April 29, 2022 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhlc/347d05f894c1f60606b1f4daddcd85f1 to your computer and use it in GitHub Desktop.
Save rhlc/347d05f894c1f60606b1f4daddcd85f1 to your computer and use it in GitHub Desktop.
// 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