ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.44k stars 938 forks source link

Gas limit is ignored. #147

Closed MicahZoltu closed 1 month ago

MicahZoltu commented 6 years ago

In the run tab of remix I am prompted to set the gas limit for my transactions. However, setting it doesn't appear to actually work and instead estimated gas is used. This is problematic when gas estimation doesn't work. For example, I have a transaction that has variable gas costs based on when it is mined, so I need to explicitly specify gas and not use estimates.

Gas limit setting: image

Actual gas provided: image

This is when using Web3 Provider.

yann300 commented 6 years ago

yeah gas limit here is the max amount of gas... there should be a different semantic here

cleanunicorn commented 5 years ago

Yes, this is confusing. Could the gas limit specified there be used when making transactions?

I see there is a gas estimation request done before and the result from there is used. Sometimes that is incorrect and even if we set a really high gas limit the transaction fails.

cleanunicorn commented 5 years ago

@yann300 I'm not sure if this is enough or if I break some functionality https://github.com/ethereum/remix/pull/1092

labanskoller commented 5 years ago

I hit this problem while playing the 35C3 Junior CTF. I think it's a bug too, but I'm a newbie to Ethereum and Remix. This section of my challenge write-up describes my problem: https://labanskoller.se/blog/2019/01/07/solution-to-35c3-junior-ctf-challenge-entrance/#running-out-of-gas-and-problems-changing-the-limit I've not tried the proposed fix in the linked pull request.

caoyifeng007 commented 2 years ago

Does anybody know how to specify a fixed number of gas in an address(addr).call when debug in remix?

Aniket-Engg commented 1 month ago

This should be fixed