const BigNumber = web3.BigNumber;
module.exports = {
ZERO_ADDRESS: '0x0000000000000000000000000000000000000000',
MAX_UINT256: new BigNumber(2).pow(256).minus(1),
};
BigNumber is no longer bundled in Web3 since the 1.X.X release.
Use web3.utils.BN
Hey thanks for the issue as @mswezey23 has stated you need to use web3.utils.BN -https://web3js.readthedocs.io/en/1.0/web3-utils.html#bn
Will close it now
Thanks
Most helpful comment
BigNumber is no longer bundled in Web3 since the 1.X.X release.
https://ethereum.stackexchange.com/questions/50294/typeerror-web3-is-not-a-constructor-when-trying-to-use-node-js-with-truffle-con
Use
web3.utils.BN