January 2020
Intermediate to advanced
530 pages
11h 11m
English
Next, Let's look at the method we'll use to update the user's Gold and USD balance after successful trades in the orderbook:
setBalance = () => { let app = this; var contractUSD = new this.web3.eth.Contract(app.USD.abi,app.USD.address); contractUSD.methods.balanceOf(app.web3.eth.defaultAccount).call().then(function(response){ ...Read now
Unlock full access