Ethers.js: [v5] TypeError: ethers.utils.bigNumberify is not a function

Created on 11 Jun 2020  路  4Comments  路  Source: ethers-io/ethers.js

Hi!

I get the following error (TypeError: ethers.utils.bigNumberify is not a function) with "ethers": "5.0.0-beta.191", but not with lastest v4.

Not sure if it's a bug or just documentation for v5 beta not up to date (https://docs.ethers.io/ethers.js/v5-beta/api-utils.html)...

discussion

Most helpful comment

The beta docs for migration are now here and will become non-beta tomorrow. :)

All 4 comments

Docs are not updated yet. There is an API change.

Can you try:

ethers.BigNumber.from()

@zemse is correct. :)

The beta docs will be migrated to docs today as I prepare for the prod release tomorrow.

In the meantime, here are the beta docs: https://docs-beta.ethers.io/migration/ethers-v4/#migration-v4--bignumber

:)

The beta docs for migration are now here and will become non-beta tomorrow. :)

Ok, thanks everyone for your answers. Working great and wish you a happy release!

Was this page helpful?
0 / 5 - 0 ratings