运行一下命令的时候: forge script script/Pump.s.sol --rpc-url mainchain --gas-price 1000000000 --broadcast 如何指定gas-price? 我在foundry.toml配置文件中设置了 gas_price = 1000000000,但是不起作用。 每次部署还是去链上获取的预估gas price。导致部署的时候多花了不少主币。
--with-gas-price price Sets the gas price for broadcasted legacy transactions, or the max fee for broadcasted EIP1559 transactions. Note: To set the gas price in the execution environment of the script use --gas-price instead (see below).
配置中使用with-gas-price看看?