Appearance
Solidity API
PropsERC1155Base
_beforeTokenTransfer
solidity
function _beforeTokenTransfer(address operator, address from, address to, uint256[] ids, uint256[] amounts, bytes data) internal virtualERC1155 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 |