-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can add prev_owner/from attributes at transfer_nft and send_nft? #11
Comments
maybe like this? |
Second this. Contracts receiving the NFT more likely will want to know who's the previous owner instead of who initiated the transfer. In ERC-721 specs, the Transfer event simply contains Also Transfer should really be their own events instead of lumped together with other logging info. This makes is much easier for indexers to parse transactions. |
Feel free to make a PR. |
@shanev @JakeHartnell should we reopen this one? I don't quite understand why previous PR was not approved. |
When owner approve the token and contract execute transfer, we can't know where is the token came from by the logs.
This is really hard to track token transfer. I made an example on terra.
User A make approve to transfer the cw721 token to contract B
https://finder.terra.money/columbus-5/tx/14D4251F41053E7572A740D7FDB1760A2D3FD593870B0D70FB1EDBCA7121F211
User C execute the contract B to send it to B
https://finder.terra.money/columbus-5/tx/AEA9F3EEF1AD4A29644355777BD4157422E55E50130C2D330BC6EC0F4E63F51F
The token transferred to B from A. But there is no information about that at tx of 2.
Because of this Cw20 have transfer_from and send_from.
It is possible to make the attribute that can show the previous owner?
The text was updated successfully, but these errors were encountered: