Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big numbers in test file #4

Open
zach-is-my-name opened this issue Aug 27, 2019 · 0 comments
Open

Big numbers in test file #4

zach-is-my-name opened this issue Aug 27, 2019 · 0 comments

Comments

@zach-is-my-name
Copy link

How is it possible to initialize BondingCurveMock.sol with big numbers such as:

  const startSupply = 10 * 1e18; 
    instance = await BondingCurveMock.new(
      startSupply,
      solRatio,
      gasPrice,
      { value: startPoolBalance, from: accounts[0] }
    );

I'm using Truffle 5.0.27 but I feel like I'd need to pass startSupply or any javascript number > Number.MAX_SAFE_INTEGER into a bignumber constructor at some point...

anyway the test fails with this same error:
web3/web3.js#2077

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

No branches or pull requests

1 participant