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

(Bug) Use proper way to instantiate web3 objects #706

Closed
rstormsf opened this issue Mar 15, 2018 · 1 comment
Closed

(Bug) Use proper way to instantiate web3 objects #706

rstormsf opened this issue Mar 15, 2018 · 1 comment
Assignees

Comments

@rstormsf
Copy link

rstormsf commented Mar 15, 2018

Whenever you use

new web3.BigNumber(X)

X should be a STRING, not a number.

example:

new web3.BigNumber('0.02714285714285714') //success
new web3.BigNumber(0.02714285714285714) //error
Uncaught Error: new BigNumber() number type has more than 15 significant digits: 0.02714285714285714

@fernandomg @pablofullana

hence why the UI can't load the screen
https://wizard.oracles.org/crowdsale?addr=0x603a69c48a3175e99C06581feFC7a8D22D6ad894&networkID=1
(mainnet)

const number = new BigNumber(value)

value.toString() should be

@dennis00010011b
Copy link

Reproduced it once
Parameters: decimals=18, rate=1401, supply=51578
Purshase=6+0.000000000000011

screen shot 2018-03-15 at 22 47 35

screen shot 2018-03-15 at 22 48 25

wizard.oracles.org-1521179283492.log

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

3 participants