Decent basic UI example. Works with metamask on testnet and ropsten (probably mainnet).
Native.Web3.js is getting tricky. Dealing with all the Metamask failure cases has led to some verbose error catching logic. Trying to stay as Elm as possible - everything throw is caught and handled accordingly.
Regarding BigNumbers: Added a 'formatter function' in the toTask (general function) response handling. JSON.stringify was not properly converting BigNumbers to string past a certain threshold. BigNumber.toFixed() is needed. Luckily only a few return values in web3.js include BigNums.
Decent basic UI example. Works with metamask on testnet and ropsten (probably mainnet).
Native.Web3.js is getting tricky. Dealing with all the Metamask failure cases has led to some verbose error catching logic. Trying to stay as Elm as possible - everything throw is caught and handled accordingly.
Regarding BigNumbers: Added a 'formatter function' in the toTask (general function) response handling. JSON.stringify was not properly converting BigNumbers to string past a certain threshold. BigNumber.toFixed() is needed. Luckily only a few return values in web3.js include BigNums.