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.

Option to default to block gas limit of connected network

See original GitHub issue

Often users of Truffle have to trial and error the right gas value in truffle.js. But shouldn’t there just be a default option to have gas be the current block gas limit of the network?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gnidancommented, Jan 16, 2019

This has been released as part of v5. Thank you!

1reaction
cgeweckecommented, Mar 3, 2018

@JohnAllen Small update: automated fueling of deployments and method calls have been added to truffle-contract 95. Believe this should accomplish what you’re aiming for here. Unfortunately it won’t be available until the release that upgrades to web3 1.0 comes out.

Thanks for pushing for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Block Gas Limit in private blockchain?
In private network you can increase block gas limit by using gasLimit parameter in genesis file. "gasLimit": "0x8000000",.
Read more >
What is Ethereum Transaction Gas Limit? - Blocknative
A transaction gas limit that is too low will result in a failed transaction and lost gas fees. This is because miners must...
Read more >
Accounts, Transactions, Gas, and Block Gas Limits in Ethereum
Miners on the network decide what the block gas limit is. Separate from the adjustable protocol block gas limit is a default mining...
Read more >
Reference | Ethereum development environment for ... - Hardhat
Default value: the same value as blockGasLimit . ... The block gas limit to use in Hardhat Network's blockchain. Default value: 30_000_000 ......
Read more >
InvalidInputError: sender doesnt have enough funds to send tx ...
I mentioned another option in my answer. If the base fee per gas is low enough, then transactions won't cost that much and...
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