ERC1155Internal
ERC1155Internal
_beforeTokenTransfer
ERC1155 hook, called before all transfers including mint and burn
function should be overridden and new implementation must call super called for both single and batch transfers
Parameters
Name
Type
Description
operator
address
executor of transfer
from
address
sender of tokens
to
address
receiver of tokens
ids
uint256[]
token IDs
amounts
uint256[]
quantities of tokens to transfer
data
bytes
data payload
Was this helpful?