From 30757299518d6b32055023178bf151685c77e7a6 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 13 Jul 2018 14:00:11 -0400 Subject: [PATCH] Update 3-listing-buying-tokens.md --- tutorial/3-listing-buying-tokens.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorial/3-listing-buying-tokens.md b/tutorial/3-listing-buying-tokens.md index 5883b55..5147e02 100644 --- a/tutorial/3-listing-buying-tokens.md +++ b/tutorial/3-listing-buying-tokens.md @@ -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.