Skip to content

Module 4 – Interacting with contracts (20 minutes)

herrerameri edited this page Nov 23, 2017 · 6 revisions

Ok, it's the moment to interact with the deployed contract. First of all, we have to know that every interaction is a promise, so asynchronic. If we want a reference to the contract we should do:

truffle console

Inside the console:

var helloWorldContract;
HelloWorld.deployed().then(function(contract){ helloWorldContract = contract; });