Post
Topic
Board Services
Re: Help me fix issue with simple smart contract: Paying 0.01 Ether
by
Bandot
on 27/03/2018, 05:08:53 UTC
Untested but here are some ideas that come to mind:

1. Are you sure eth.accounts[1] returns a valid address? Try and log/output this.

2. Try changing eth.accounts[1] to web3.eth.accounts[1]

3. Consider using remix.ethereum.org since they give better debug messages.

Figured it out, I was passing in the wrong contract address the whole damn time.