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

[Bug]: This method only supports 0x-prefixed hex strings #24728

Open
0f0crypto opened this issue May 22, 2024 · 1 comment
Open

[Bug]: This method only supports 0x-prefixed hex strings #24728

0f0crypto opened this issue May 22, 2024 · 1 comment
Labels
external-contributor regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug

Comments

@0f0crypto
Copy link

Describe the bug

When trying to initialize a freshly deployed USD Coin token (FlashTokenV2_1) from circle.com (e.g. via Remix) the latest version of Metamask 11.15.5 throws the "This method only supports 0x-prefixed hex strings but input was:" error. Reverting back to an older version, e.g. v11.13.3 resolves the issue, i.e. changes made since v11.13.3 have (re)introduced the issue/bug

Expected behavior

The initialize transaction should be correctly processed

Screenshots/Recordings

No response

Steps to reproduce

  1. Grab the USDC smart contract code (e.g. from ethereum at https://etherscan.io/address/0x43506849d7c04f9138d1a2050bbf3a0c054402dd#code)
  2. (re)deploy the smart contract (e.g. via Remix) to, for example, Sepolia - compile using the solidity v0.6.12 compiler (with 10,000,000 optimizations)
  3. try to initialize with the following values;
  • USD Coin
  • USDC
  • USD
  • 6
    and any wallet addresses for the remaining params
  1. Metamask throws the error (see the log output below)

Error messages or log output

Message: This method only supports 0x-prefixed hex strings but input was: 0xusd coin

Code: Error

Stack:
Error: This method only supports 0x-prefixed hex strings but input was: 0xusd coin
  at r.assertIsHexString (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:21:21821)
  at r.toChecksumAddress (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:21:9005)
  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-2.js:1:214645
  at n.default (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-2.js:1:214659)
  at ga (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:60103)
  at As (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:104934)
  at Ou (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:90842)
  at Ru (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:90767)
  at Tu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:88115)
  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:46513
  at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:3:13158)
  at Yi (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:46222)
  at eo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:46458)
  at Ji (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:46393)
  at xu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:88492)
  at dl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:113674)
  at render (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-5.js:1:115597)
  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-5.js:1:131028

Version

11.15.5

Build type

None

Browser

Chrome

Operating system

Windows

Hardware wallet

No response

Additional context

No response

Severity

No response

@metamaskbot metamaskbot added external-contributor regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 labels May 22, 2024
@gauthierpetetin gauthierpetetin added Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform labels May 23, 2024
@gauthierpetetin
Copy link
Contributor

Duplicate issue: #24476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

3 participants