question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gas limit is ignored.

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cleanunicorncommented, Dec 4, 2018

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.

0reactions
caoyifeng007commented, Oct 11, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gas limit is ignored. · Issue #147 · ethereum/remix-project
In the run tab of remix I am prompted to set the gas limit for my transactions. However, setting it doesn't appear to...
Read more >
Gas Limit | Bybit Learn
Therefore, if the gas limit is set too low, then the transaction may be ignored by Ethereum miners and take a long time...
Read more >
Shh! Don't Share This Ethereum Gas Price Secret - Paxful
At the same time, validators can ignore your transaction if you set the gas limit too low. This is why are gas fees...
Read more >
What are ETH Gas Fees? - Intro for Traders & Builders
Gas limit: The maximum amount someone is willing to pay for a transaction to complete. Gwei: A fractional unit of ETH — 1.0...
Read more >
What is the purpose of gasLimit in an EIP1559 transaction?
The purpose of gas limit is to specify the maximum amount of gas you are willing to consume in a transaction.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found