Skip to content
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

Merged
merged 9 commits into from
Nov 18, 2024
Merged

Emit CW721 token owner before transfer #67

merged 9 commits into from
Nov 18, 2024

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Nov 14, 2024

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.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirming this is gasless?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codchen codchen merged commit d1eafea into main Nov 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants