Hi guys, quick question on ethremix, when I make changed do I HAVE TO generate a new contarc / dApp and if so I HAVE TO copy and paste the new address to my HTML client EVERYTIME I make a change... is there a better work flow? or do I always have to copy new contract address to web client on EVERY single change in code?
May 2, 2018, 8:58 PM
I see... ya I figured... didnt know if there is a way to automate this
ok tx will check, any other advantages for using a framework like Truffle?
ok tx
ya I'd rather stay away from frameworks until I feel good about solidity
only began with Angular after I was a JS GURU
always better to start with bare metal
on unrelated qurstion, I am trying to start geth with unlock my account but if I use unlock and password I dont get the console
geth —datadir=./datadir —nodiscover —rpc —rpcapi "db,personal,eth,net,web3" —rpc —rpccorsdomain "*" —rpcaddr="172.31.35.4" —rpcport 8545 —rpcvhosts "*" —ws —wsapi "db,personal,eth,net,web3,debug" —wsorigins='*' —wsaddr="172.31.35.4" —wsport 8546 "0xed1bb19c7ffdd5f5b78f44d8e449fe45fa794410" —password "123123" console
any ideas?
sorry
I get Fatal: Failed to read password file: open 123123: no such file or directory
and command is
geth —datadir=./datadir —nodiscover —rpc —rpcapi "db,personal,eth,net,web3" —rpc —rpccorsdomain "*" —rpcaddr="172.31.35.4" —rpcport 8545 —rpcvhosts "*" —ws —wsapi "db,personal,eth,net,web3,debug" —wsorigins='*' —wsaddr="172.31.35.4" —wsport 8546 —unlock "0xed1bb19c7ffdd5f5b78f44d8e449fe45fa794410" —password "123123" console
Fatal: Failed to unlock account 0xed1bb19c7ffdd5f5b78f44d8e449fe45fa794410 (no key for given address or file)
nvm
figured it out
tx for the help this far
May 2, 2018, 9:29 PM
i recommends truffle because this reasons: you can experiment in real blockchain quickly: just run 2 command line: truffle compile & truffle migrate. you will get experience to deploy smart contract like in production (you may have run out gas haha). second reason: you can do test driven development easily for smart contract, just one command and simple workflow: truffle test - edit code - truffle test , no need for deploy step
third reason. its for your case: use truffle contract js library. no need to copy paste address. just call contract_name.deployed() and its done
May 3, 2018, 4:14 AM