truffle-box / tutorialtoken-box

A box containing all you need to get started with our OpenZeppelin (TutorialToken) tutorial.
MIT License
56 stars 23 forks source link

获取余额取值错误 #21

Open YouquanWang opened 4 years ago

YouquanWang commented 4 years ago

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