Open raulk opened 6 years ago
From the expected interface of ERC-721:
LGTM. bytes can be returned as hex strings.
@jonathanBuhler Could you update this ticket with your findings and the blockers you're facing?
Due to similarities in the ERC721 and ERC20 token, our current decoding system marks both as ERC20. Raul suggested using ERC165 to identify which interface the token implements, but I was not able to make much headway in that regard. This is the pull request in my own fork of the code as it currently stands.
For the most part my attempts to decode ERC721 mirrored the current implementation for ERC20, but with added fields for where 721 had functionality that 20 did not (setApprovalForAll, safeTransferFrom).
Add support for decoding ERC-721 transactions.