feat(`forge create / cast send`): add `--gas-estimate-multiplier` flag
Component
Forge
Describe the feature you would like
For certain networks, gas(price) may be incorrectly estimated, resulting in transactions that are underpriced:
https://github.com/foundry-rs/foundry/issues/1703
in forge create we use the default Provider::{estimate_gas,get_gas_price} functions to fill the transactions, if they're not provided via cli arguments
it would be useful to scale these estimates percentage-wise, perhaps --scale-gas-limit 20 to use a 1.2 multiplier for the gas limit.
Additional context
No response
I'd like to take a stab at this, will update with pr soon
awesome! keep 'em coming!
Note for future reference: forge script implements this functionality under the --gas-estimate-multiplier flag, the goal of the ticket would be to implement this for cast send and forge create.
Is it okay if I tackle this?