ERC1155Internal

ERC1155Internal

_beforeTokenTransfer

function _beforeTokenTransfer(address operator, address from, address to, uint256[] ids, uint256[] amounts, bytes data) internal virtual

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?