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

Assign owner correctly when there are multiple transfers #1957

Open
wants to merge 1 commit into
base: tony/v6.0.0-hotfix
Choose a base branch
from

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Nov 21, 2024

Describe your changes and provide context

It is possible to have multiple ERC721 transfers in the same transaction. The previous implementation of owner replacement doesn't account for such scenarios and always use the last pretransfer_owner event to fill in owners for synthetic ERC721 events. This PR fixes it by assigning pretransfer_owner event to the correct transfer event based on order of appearance.

Testing performed to validate your change

unit test that involves multiple transfers in a tx

@codchen codchen requested a review from philipsu522 November 21, 2024 04:01
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.

1 participant