The scenario is: I am executing my contract from remix which is connected to my blockchain and I am able to execute functions from both geth console (by creating a contract instance using abi and address) as well as from the remix UI.
document.write(web3.eth.getBalance(web3.eth.accounts) I get the correct balance. But when I try to execute
contractInstance.deposit(web3.eth.accounts, 10000) (deposit is a method in my contract which takes two parameters, account address and amount) it throws an invalid address error. However, I am able to execute the same line of code from the geth console.
I guess I am making some silly mistake.
PS: I've tried
contractInstance.deposit(web3.eth.accounts, 10000).call() and
contractInstance.deposit(web3.eth.accounts, 10000).call but still it throws the same error.