Skip to content

Commit 985e26e

Browse files
chore(cast): remove redundant batch-mktx clearing (foundry-rs#14252)
1 parent 709116e commit 985e26e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/cast/src/cmd/batch_mktx.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010
use alloy_consensus::SignableTransaction;
1111
use alloy_eips::eip2718::Encodable2718;
1212
use alloy_network::{EthereumWallet, TransactionBuilder};
13-
use alloy_primitives::{Address, Bytes, U256};
13+
use alloy_primitives::{Address, Bytes};
1414
use alloy_provider::Provider;
1515
use alloy_signer::Signer;
1616
use clap::Parser;
@@ -115,9 +115,7 @@ impl BatchMakeTxArgs {
115115
// Set dummy "to" from first call
116116
let first_call_to = call_specs.first().map(|s| s.to);
117117
let builder = builder.with_to(first_call_to.map(Into::into)).await?;
118-
let mut tx_builder = builder.with_code_sig_and_args(None, None, vec![]).await?;
119-
tx_builder.tx.clear_kind();
120-
tx_builder.tx.set_value(U256::ZERO);
118+
let tx_builder = builder.with_code_sig_and_args(None, None, vec![]).await?;
121119

122120
if raw_unsigned {
123121
if eth.wallet.from.is_none() && !has_nonce {

0 commit comments

Comments
 (0)