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: use Bigint parse wallet balance #556

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iosh
Copy link

@iosh iosh commented May 6, 2024

parseInt("0x2dbe4df48c1f4400", 16).toString()  // get the result  '3296157690000000000'
parseInt("0xd1c28026901869bc00", 16).toString() // get the result is '3.869384755846e+21' , the fromWad function will get an error

To solve this issue, it is necessary to replace parseInt with BigInt.

Copy link

vercel bot commented May 6, 2024

@iosh is attempting to deploy a commit to the WalletConnect Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-dapp-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 1:33pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
react-wallet-v2 ⬜️ Ignored (Inspect) Visit Preview May 6, 2024 1:33pm

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.

None yet

1 participant