You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the new web3.utils.toBN does not return a true BigNumber object. It's missing a number of it's most critical functions, including but not limited to
toFixed() toFormat()
I confirmed this by including BigNumbers.js separately, creating a new BigNumber() from web3's BigNumber object, and then calling toFixed() (it worked). If this was intentional, it should be noted somewhere.
The text was updated successfully, but these errors were encountered:
It appears that the new
web3.utils.toBN
does not return a true BigNumber object. It's missing a number of it's most critical functions, including but not limited totoFixed()
toFormat()
I confirmed this by including BigNumbers.js separately, creating a
new BigNumber()
from web3'sBigNumber
object, and then callingtoFixed()
(it worked). If this was intentional, it should be noted somewhere.The text was updated successfully, but these errors were encountered: