With Truffle 3.0 when I call one of my contract's function, in console I have this error:
Uncaught (in promise) Error: invalid address
I found this workaround, and in my code I try this with no success.
this.web3Provided.eth.defaultAccount=this.web3Provided.eth.coinbase;
In truffle doc they sat I can set a from address in my config, but also this not work. from: '0x8c384d9f226ea92c99f7aa83340714a6f82a3161'
I also try with this after I have imported all truffle.config file:
TruffleConfig.networks[NODE_ENV].from = this.web3Provided.eth.coinbase;
Please help me.
buildContracts() { let contracts = {}; let meta;
}
– underdog Jul 31 '17 at 08:29contract.default({from: ...})- fixed my issue. – Andrey Feb 07 '18 at 14:57