New answers tagged gas
1
vote
Accepted
Ridiculous high gas fee in production (ERC20)
It's working as expected in my case.
Make sure you pass the correct value of 0.005 ether with the function call.
0
votes
Accepted
what exactly are the limitations of the require() function concerning my custom logic
The limit of 2300 only applies when you are sending ether via transfer or send.
Assuming that you are either sending ether via metamask, or scripts, which use call, the gas can be specified to be ...
0
votes
what exactly are the limitations of the require() function concerning my custom logic
I think you're confusing the amount of gas sent by the transfer function, which is 2300, with the receive function.
Take a look at this contract which interacts with your contract:
contract CallFundMe ...
0
votes
Does everything revert when a transaction runs out of gas when it was executed from another contract?
The accepted answer is not true. If the function is called at the end and runs out of gas, it will not revert the entire tx. Example to reproduce here: https://github.com/dhvanipa/evm-outofgas-call
Top 50 recent answers are included
Related Tags
gas × 1722solidity × 534
transactions × 259
gas-price × 243
gas-limit × 203
gas-estimate × 180
contract-development × 145
ether × 113
fees × 108
remix × 105
web3js × 97
out-of-gas × 92
evm × 83
contract-design × 78
erc-20 × 68
go-ethereum × 67
contract-deployment × 62
metamask × 56
tokens × 55
optimization × 52
contract-invocation × 50
blockchain × 47
storage × 46
mining × 45
truffle × 37