Skip to content

Commit

Permalink
Update protocol/20231116-evm-support.md
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor G. <[email protected]>
  • Loading branch information
ramtinms and sideninja authored Feb 21, 2024
1 parent 5c78cb6 commit ca025f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/20231116-evm-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ As mentioned earlier COAs expose two interfaces for interaction, one on the Flow

- `function supportsInterface(bytes4 interfaceId) external view returns (bool)` provides the functionality needed to satisfy EIP-165. If the given interfaceID is available it returns true.

- `receive() external payable` is the standard method needed to allow other EVM users to send ETH to the smart contract directly, if data is passed to this method it would revert. This method is not usually directly called and any call to smart contract it without the data is automatically rerouted to this function.
- `receive() external payable` is the standard method needed to allow other EVM users to send Flow to the smart contract directly, if data is passed to this method it would revert. This method is not usually directly called and any call to smart contract it without the data is automatically rerouted to this function.

- `function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes calldata _data) external returns (bytes4)` is provided to support safe transfers from ERC721 asset contracts. It's called on the recipient after a transfer. Return of any value other than the magic value (`0x150b7a02`, as defined in the [ERC-721 standard](https://eips.ethereum.org/EIPS/eip-721)) must result in the transaction being reverted.

Expand Down

0 comments on commit ca025f7

Please sign in to comment.