We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cebfb5 commit 540c8dcCopy full SHA for 540c8dc
crates/forge/bin/cmd/create.rs
@@ -242,17 +242,17 @@ impl CreateArgs {
242
provider.get_transaction_count(deployer_address, BlockId::latest()).await
243
}?);
244
245
+ // set tx value if specified
246
+ if let Some(value) = self.tx.value {
247
+ deployer.tx.set_value(value);
248
+ }
249
+
250
deployer.tx.set_gas_limit(if let Some(gas_limit) = self.tx.gas_limit {
251
Ok(gas_limit.to())
252
} else {
253
provider.estimate_gas(&deployer.tx, BlockId::latest()).await
254
255
- // set tx value if specified
- if let Some(value) = self.tx.value {
- deployer.tx.set_value(value);
- }
-
256
if is_legacy {
257
let gas_price = if let Some(gas_price) = self.tx.gas_price {
258
gas_price.to()
0 commit comments