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

Fix issues with empty responses in ERC20Standard #927

Merged
merged 4 commits into from
Oct 5, 2022

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Oct 5, 2022

Description
This PR fixes some issues with ERC20Standard and proxy contracts. Some proxy contracts return 0x instead of reverting when an unknown method signature is used. This PR adds requirements for symbol() and decimals() to be non-empty.

Itemize the changes you have made into the categories below

  • FIXED:

    • Fix issues with empty responses in ERC20 standard

Checklist

  • Tests are included if applicable
  • Any added code is fully documented

Issue

Fixes MetaMask/metamask-extension#16076

@FrederikBolding FrederikBolding requested a review from a team as a code owner October 5, 2022 09:36
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM

@FrederikBolding FrederikBolding merged commit 0b03d58 into main Oct 5, 2022
@FrederikBolding FrederikBolding deleted the fb/fix-erc20-empty-responses branch October 5, 2022 14:49
gantunesr pushed a commit that referenced this pull request Dec 8, 2022
* Fix an issue with empty ERC20 responses in ERC20Standard

* Add comment

* One more comment
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Fix an issue with empty ERC20 responses in ERC20Standard

* Add comment

* One more comment
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Fix an issue with empty ERC20 responses in ERC20Standard

* Add comment

* One more comment
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.

[Bug]: smart wallet addresses incorrectly detected as tokens
2 participants