Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: properly handle 'estimate' for defaultTransactionGasLimit option on the CLI #3233

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

tenthirtyone
Copy link
Contributor

@tenthirtyone tenthirtyone commented Jun 14, 2022

Previously, estimate was causing an error when the miner options would attempt to cast the string to BigInt.

This change adds the estimateOrToBigIntOrString function to Ethereum's miner options to intercept and handle the estimate option on the cli.

Fixes #2398

@tenthirtyone tenthirtyone requested review from davidmurdoch, MicaiahReid and jeffsmale90 and removed request for davidmurdoch June 14, 2022 19:53
Copy link
Contributor

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, looks good! In the description, could you updated it to say "Fixes: #2398" rather than "Related"? This will trigger GitHub to close the issue once merged.

@tenthirtyone
Copy link
Contributor Author

@MicaiahReid 👍

@davidmurdoch davidmurdoch changed the title Handle 'estimate' for defaultTransactionGasLimit on the CLI fix: properly handle 'estimate' for defaultTransactionGasLimit option on the CLI Jun 22, 2022
@davidmurdoch davidmurdoch force-pushed the bug/cli-defaultTransactionGasLimit-estimate branch from d65683c to ab1d9f4 Compare June 24, 2022 15:47
@tenthirtyone tenthirtyone merged commit 75a5a26 into develop Jun 24, 2022
@tenthirtyone tenthirtyone deleted the bug/cli-defaultTransactionGasLimit-estimate branch June 24, 2022 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ganache --miner.defaultTransactionGasLimit estimate fails with Error Cannot convert estimate to a BigInt
3 participants