Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1143e57 2023-08-24T00:28:32.561836000Z)
What command(s) is the bug in?
forge script
Operating System
None
Describe the bug
--priority-gas-price was implemented in #5281
My version of foundry is up to date.
Expected behavior: when I use --priority-gas-price, it lowers my gas fee on deployment and doesn't use foundry's default 3 gwei tip.
To reproduce, create a fresh repository and deploy. I ran the following command:
forge script script/Counter.s.sol:CounterScript --priority-gas-price 100 --broadcast --slow --rpc-url optimism -vvvv
This is the output:
Estimated gas price: 3.0000001 gwei
Estimated total gas used for script: 138734
Estimated amount required: 0.0004162020138734 ETH
Following the suggestion in #5281, I use --legacy --with-gas-price:
forge script script/Counter.s.sol:CounterScript --legacy --with-gas-price 100 --broadcast --slow --rpc-url optimism -vvvv
This is the output:
Chain 420
Estimated gas price: 0.0000001 gwei
Estimated total gas used for script: 138734
Estimated amount required: 0.0000000000138734 ETH
I have also tried by using the environment variable alias, it also doesn't work.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1143e57 2023-08-24T00:28:32.561836000Z)
What command(s) is the bug in?
forge script
Operating System
None
Describe the bug
--priority-gas-price was implemented in #5281
My version of foundry is up to date.
Expected behavior: when I use --priority-gas-price, it lowers my gas fee on deployment and doesn't use foundry's default 3 gwei tip.
To reproduce, create a fresh repository and deploy. I ran the following command:
forge script script/Counter.s.sol:CounterScript --priority-gas-price 100 --broadcast --slow --rpc-url optimism -vvvvThis is the output:
Following the suggestion in #5281, I use
--legacy --with-gas-price:forge script script/Counter.s.sol:CounterScript --legacy --with-gas-price 100 --broadcast --slow --rpc-url optimism -vvvvThis is the output:
I have also tried by using the environment variable alias, it also doesn't work.