-
Notifications
You must be signed in to change notification settings - Fork 17
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
Emit CW721 token owner before transfer #67
Conversation
@@ -371,6 +372,7 @@ func (k Keeper) execute(ctx sdk.Context, contractAddress sdk.AccAddress, caller | |||
// prepare querier | |||
querier := k.newQueryHandler(ctx, contractAddress) | |||
gas := k.runtimeGasForContract(ctx) | |||
k.emitCW721OwnerBeforeTransferIfApplicable(ctx, contractAddress, msg) |
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.
confirming this is gasless?
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.
yeah we use an infinite gas meter for the query https://github.com/sei-protocol/sei-wasmd/pull/67/files#diff-4e16010ab332946722b789b22962fb5a0814d529cd8de443b925d20ccd13705fR1105
Certain use cases require the knowledge of a transferred token's owner. Since it's not possible to get such info after the transfer without looking at historical data, this PR introduces a new event that's emit before the transfer when applicable.