Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

获取余额取值错误 #21

Open
YouquanWang opened this issue Aug 9, 2020 · 0 comments
Open

获取余额取值错误 #21

YouquanWang opened this issue Aug 9, 2020 · 0 comments

Comments

@YouquanWang
Copy link

balance = result.c[0];
result 返回的是一个bignumber
balance = result.toFixed()/Math.pow(10,18) 这才是真正的代币数量

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant