Skip to main content

New answers tagged

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.
Zartaj Afser's user avatar
  • 4,925
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 ...
Zartaj Afser's user avatar
  • 4,925
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 ...
Ougi's user avatar
  • 340
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
Dhvani's user avatar
  • 1

Top 50 recent answers are included