I have a problem with using the deposit () function on a smart contract. How do you use metamask 0.20.7 ?
const contractInstance = web3.eth.contract(contractAbi).at(contractAddress);
contractInstance.deposit({ from: web3.eth.accounts[0], value: web3.toHex(web3.toWei(0.1, 'ether'))}, function(err, result){ console.log(result); } );
How is it so that a user can only click and automatically release it in metamask with a number of 0.1 ETH ? I can't spend that amount when using it, but only get 0 ETH from it.