I’m a beginner in the Ethereum world and I’ve got some problems dealing with a SimpleStorage contract on my private testnet (http://solidity.readthedocs.io/en/latest/introduction-to-smart-contracts.html). In particular, if I create a contract instance and then call the set() function from the same node everything works. But if I call the set() function from another node of my private testnet by using the following commands:
> var instance = web3.eth.contract(abi).at(contractAddress);
> instance.set.sendTransaction(21, {from: web3.eth.accounts[0]});
the function does not seem to work. More precisely, by simply adding some event listeners, I can notice that the fallback function gets called instead. Could anyone tell me why? What am I doing wrong?
Any help appreciated.