All Questions
Tagged with bignumber contract-development
2 questions
1
vote
1
answer
1k
views
Truffle Test - Solidity: How to access value of Promise object? [object Promise] [BigNumber]
a.getB.call().then(function (f) { console.log(f[1][0]) });
outputs:
BigNumber { s: 1, e: 20, c: [ 5000000 ] }
How can I access the value in c?
How can I save object f to a javascript variable?
...
3
votes
1
answer
187
views
uint doesn't return big number object if function is not constant?
So, I have a contract deployed which has a simple function which returns a uint.
If I make the function constant it returns the correct value set as a BigNumber object, but if I remove the constant ...