Skip to main content
10 events
when toggle format what by license comment
Aug 15, 2017 at 9:58 comment added Abhishek As web3 is a javascript library for interacting with ethereum, you can run the web3 commands on any javascript console or file. I am not sure if it works for eris contracts.
Aug 14, 2017 at 7:35 comment added Varun @Abhishek - where do we run this web3 command? it has to be part of .sol file? Can we do something with eris-contracts
Jul 29, 2017 at 2:20 comment added Jonny Sweeny both of these solutions work but the running of web3.eth.defaultAccount = web3.eth.accounts[0] by itself first in the console is the cleanest and easiest.
Jul 28, 2017 at 8:34 comment added Abhishek Good point to note it down.
Jul 28, 2017 at 8:30 vote accept Jonny Sweeny
Jul 28, 2017 at 8:29 comment added Jonny Sweeny I think I figured out what you guys were getting at; now the errors are gone and I get a confirmation hexadecimal string of some type, after trying this: > c5.updateV(44321,{from: eth.accounts[0]}) "0x46e2ad3a25b00aa12624093492c1b84ee28b9f4aee6c632cca363d4d756c72cc" Note to future persons, that you won't notice the updated value via the query command until after a block has been mined. > miner.start(1) null > miner.stop() true > c5.query() 44321
Jul 28, 2017 at 8:13 comment added Abhishek It should be working. You can try compiling code again and then test because there doesn't seems to be anything wrong in the code.
Jul 28, 2017 at 6:54 comment added Jonny Sweeny Do you mean like this? > c5.update("4"{from:"0x6dd4530a254de371110f88322a67c7d77dc60790"}) I tried several variants of that with quotes and commas added as well but always got errors like this: (anonymous): Line 1:14 Unexpected token { (and 2 more errors)
Jul 28, 2017 at 5:37 comment added Abhishek Error is mainly due to lack of account address.You need to some how attach an account to your call. Can you give a try with c5.update("4"{from: <your account address>})
Jul 28, 2017 at 4:05 history answered Abhishek CC BY-SA 3.0