web-examples icon indicating copy to clipboard operation
web-examples copied to clipboard

fix: use Bigint parse wallet balance

Open iosh opened this issue 1 year ago • 2 comments

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.

iosh avatar May 06 '24 03:05 iosh

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

A member of the Team first needs to authorize it.

vercel[bot] avatar May 06 '24 03:05 vercel[bot]

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

vercel[bot] avatar May 06 '24 13:05 vercel[bot]