I'm making this call from JavaScript to the contract function.
contracts['CrowdFunder'].contract.contribute({value: web3.toWei(0.000000000000000005, 'ether')});
The function is called, but the error message says,
An error occurred during contract execution: 'Out of gas'
How do I specify the amount of gas in JavaScript for the above?
Best Answer
Try changing
to
Refer to the example under Contract Methods in JavaScript API - web3.eth.contract.
And modifying the call as suggested by
eth
's comment below: