-
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
feat: added prev_owner to response log #12
Conversation
@@ -194,6 +194,7 @@ fn transferring_nft() { | |||
Response::new() | |||
.add_attribute("action", "transfer_nft") | |||
.add_attribute("sender", "venus") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost like @larry0x's comment of using from
and to
like the Ethereum transfer events.
It is important to maintain sender, as that may be different than the owner, even though there is a little duplication there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransferNFT
needs to be consistent with SendNFT
.
What do folks think about using |
FWIW I'm in favour of sticking close to the ETH standards where possible. |
I think we should continue with |
Hmmm, I suppose I'm looking at the POV of devs who are coming from ETH/ERC721 land. Although can see the argument for CW20 style too 🤷 |
I think that we might be better to stick with the current CW standards. Changing everything to Ethereum sounds like a lot of work in code-change and communication with exisiting protocols. So perhaps let's avoid that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
And I think we need to add owner at mint response log I think owner is more important information than minter. Minter is always same for same contract |
This issue is a bit stale. Okay to close? |
Yeah. |
@JakeHartnell @larry0x @shanev Please reconsider this PR. This is very useful for indexers and apps and for the consistency of cw721 as well. |
Resolves #11
Useful feature and have added it in.