Update 3-listing-buying-tokens.md

This commit is contained in:
Richard Ramos 2018-07-13 14:00:11 -04:00 committed by GitHub
parent ac1d161592
commit 3075729951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ We will add this behavior to the WithdrawBalance component. Open the file `app/j
```
import EmbarkJS from 'Embark/EmbarkJS';
import web3 from "Embark/web3";
import SpaceshipToken from 'Embark/contracts/SpaceshipToken';
```
The balance needs to be loaded when the page loads. This should be done in `componentDidMount()`. Remember to use `EmbarkJS.onReady((err) => {})` to be able to interact with the EVM as soon as the component mounts.