I solved the error accroding to Invalid Address solution


The contract I run was a very simple set-get variable which I adapted according to the truffle metacoin sample.

My question is: why metacoin runs ok and my contract needs to assign the defaultAccount?

In both cases I run the contract against a local geth node.


I found what was different between metacoin and my contract.

In metacoin when calling sendCoind a last parameter is added: {from: account}

Now my app runs without setting the defaultAccount.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.