I am trying to run contracts on a fresh Geth installation of a private blockchain network. It is working fine in the sense that I can transfer ether between accounts. But if I try to execute a contract, the JS Web3 file gets loaded, I set the defaultAccount as
web3.eth.defaultAccount = eth.accounts , unlock the account and then after getting the mined address, call the class. But when I call a function, it simply returns
Error: invalid address
at map (native code)
at apply (native code)
For example, even if I execute a contract as simple as the greeter contract, greeter.greet() returns the above.
I assume that there must be a problem with my private network, but can't figure out what it is.
Any help with this would be appreciated.
I want this to run only on the private network, please refrain from suggesting trying it on public test network.