Skip to main content

Timeline for How to call a function from truffle

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Oct 14, 2017 at 15:27 vote accept vlad
Oct 14, 2017 at 15:27 comment added vlad ok, it was stupid. I just restarted testrpc, recompiled and migrated the contract again, and now it works.
Oct 14, 2017 at 14:13 comment added vlad That's all the code. I just discovered ether does get subtracted from the account, even though there's that error msg (opcode)
Oct 14, 2017 at 14:04 comment added pabloruiz55 Yes, sorry, I assumed you had assigned this.account to web3.eth.accounts[0]. Then, there must be a problem with the contract. Is that all the code there is to it?
Oct 14, 2017 at 13:58 comment added vlad Thanks Pablo! However, if I do it like that I get 'Error: invalid address'. If I replace this.account with web3.eth.accounts[0] i get 'invalid opcode' again.
Oct 14, 2017 at 13:05 history undeleted pabloruiz55
Oct 14, 2017 at 13:05 history deleted pabloruiz55 via Vote
Oct 14, 2017 at 13:04 history answered pabloruiz55 CC BY-SA 3.0