nodesmith / eth-plot

r/place inspired Dapp
https://medium.com/@brendan_87166/28b01f9fc244
MIT License
37 stars 6 forks source link

Buyout and purchase prices are now correct #68

Closed lbrendanl closed 6 years ago

lbrendanl commented 6 years ago

This makes the changes you recommended with BigNumber. Let me know if I am doing the wrappings incorrectly.

So for our next DApp, we can just go with this same pattern from the get go yeah? Every number that is coming from or going to the smart contract should be treated as a uint in the contract, a string everywhere in our app, and then wrapped in a BigNumber any place in our app we need to operate on that number.