MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
12.07k stars 4.93k forks source link

[Bug]: Cannot import tokens manually on Sepolia test network #28124

Open benjisclowder opened 3 weeks ago

benjisclowder commented 3 weeks ago

Describe the bug

I am not able to import any ERC20 tokens on Sepolia network. Tokens list is still empty after clicking "Import". This does not apply to NFTs and is specific to Sepolia and could also reproduce on Linea Sepolia.

Expected behavior

Tokens can be imported successfully.

Screenshots/Recordings

https://github.com/user-attachments/assets/62b7f067-e585-4465-b829-07e3aeb446c8

Steps to reproduce

  1. Load MetaMask
  2. Connect to a test network (Sepolia or Linea Sepolia)
  3. Create ERC20 tokens via TestDapp or load blockchain explorer to see a balance of existing tokens
  4. Copy token contract address
  5. In MetaMask, select Import Tokens
  6. Paste the contract address in the custom tokens field
  7. Click Next --> Import
  8. Notice the Token list is not updating with the imported tokens.

Error messages or log output

No console errors

Detection stage

In production (default)

Version

12.5.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

1atAlcone commented 3 weeks ago

<[]()~~_3>

bergeron commented 3 weeks ago

Although I was able to import the same token address on 12.5, the bug here is that the token does not import when you click the Next button too quickly. Before the token's information has been fetched from RPC calls.

Possibly the Next button should remain disabled until the data has been fetched.

https://github.com/user-attachments/assets/7c517dc2-9a6e-47b2-bb6a-d7cb084bb23a