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

tokenName is inconsistent when calling getAccountBalance on Ethereum Sepolia/Holesky #39

Open
aidandenlinger opened this issue Sep 5, 2024 · 0 comments

Comments

@aidandenlinger
Copy link

When calling getAccountBalance on a wallet with Ethereum Sepolia or Holesky, between requests the tokenName in the returned Balance object will occasionally not be consistent and changes between ETH and Ethereum Testnet Sepolia (or Ethereum Testnet Holesky for Holesky). This may happen on other chains, but I've only noticed it on Ethereum testnets.

   {
    "blockchain": "eth_sepolia",
    "tokenName": "Ethereum Testnet Sepolia",
    ...
  },
  {
    "blockchain": "eth_sepolia",
    "tokenName": "ETH",
    ...
  },

This issue does not always happen. I think after a period of time the requests get cached and it picks one name to use, but after a period of time it will be inconsistent again.

I have a small Typescript project that reproduces the issue here. The repo also includes a folder of examples that show the issue here. Two wallets with some Ethereum Sepolia that exhibit the issue are

  • 0x52f6c0b306e66893c0414abb70951c4dac15a969
  • 0xd60d9aa2c3fd053e50e1f518bad20366325a7291
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

No branches or pull requests

1 participant