IERC1363Receiver
Title: IERC1363Receiver
Interface for contracts that accept ERC-1363 transferAndCall and transferFromAndCall transfers.
Functions
onTransferReceived
Handles an ERC-1363 transfer. The token calls it after the balances have moved.
function onTransferReceived(address operator, address from, uint256 value, bytes calldata data)
external
returns (bytes4);Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | The caller of transferAndCall or transferFromAndCall. |
| from | address | The account the tokens came from. |
| value | uint256 | The amount transferred. |
| data | bytes | Additional data with no specified format. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 | IERC1363Receiver.onTransferReceived.selector to accept the transfer. |