Open mattsse opened 2 years ago
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
.
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 defaultProvider::{estimate_gas,get_gas_price}
functions to fill the transactions, if they're not provided via cli argumentsit would be useful to scale these estimates percentage-wise, perhaps
--scale-gas-limit 20
to use a1.2
multiplier for the gas limit.Additional context
No response