Jul 29, 2017 · 1 min read
Hi Miguel,
Thanks :-)
So for your questions:
GustavoCoinCrowdsale.deployed().then(inst => { crowdsale = inst })Here we are assigning the the result of the promise `GustavoCoinCrowdsale.deployed()` to crowdsale. If you type crowdsale in your console you will see the object returned.
As for the error `Cannot find creation type: =>`. This arrow function is part of the ES2015 syntax https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
You are assigning the result of the chained promise to `tokenAddress`
Try typing tokenAddress in the console. You will see that it returns the address.
Hope it helps.
