vyper
vyper copied to clipboard
In ERC721 token standard EIP, onERC721Received isn't annotated as view type
- vyper Version (output of
vyper --version
): 0.3.4+commit.f31f0ec - OS: linux
- Python Version (output of
python --version
): 3.8.3
The ERC721 example token standard in examples/tokens/ERC721.vy has an interface, ERC721Receiver
, with a function, onERC721Received
, that is annotated with view
, but in the ERC721 token standard EIP, onERC721Received
is not annotated with view
This is indeed a bug, this should be a state-modifying callback to the receiver. Would you mind creating a PR?
fixed here