Hot answers tagged

2

Parameters gas and gasLimit are the same. Parameter gasPrice has nothing to do with your question. The gas for a transaction depends on what's being executed. If you are transferring ether to an externally-owned account, then it will be 21,000. If you are calling a smart-contract function (which includes transferring ether to a smart-contract), then it ...


1

Make sure that you are providing some withdraw_amount in the Value datafield in Remix IDE. By default it has value as 0. Consider this answer for your reference. https://ethereum.stackexchange.com/a/68640/53398 Let me know if the problem still persists. Edited solution: I've find out the error you are facing. When you're running this contract, you ...


Only top voted, non community-wiki answers of a minimum length are eligible