Skip to content

Commit aeb52ea

Browse files
klkvrmattsse
authored andcommitted
fix: small cast call fixes (foundry-rs#11241)
* fix: small cast call fixes * clippy --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent b8ab12e commit aeb52ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/cast/src/cmd/call.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use foundry_evm::{
3030
opts::EvmOpts,
3131
traces::{InternalTraceMode, TraceMode},
3232
};
33+
use itertools::Either;
3334
use regex::Regex;
3435
use revm::context::TransactionType;
3536
use std::{str::FromStr, sync::LazyLock};
@@ -311,6 +312,12 @@ impl CallArgs {
311312
}
312313
}
313314

315+
if let Some(auth) = tx.inner.authorization_list {
316+
env_tx.authorization_list = auth.into_iter().map(Either::Left).collect();
317+
318+
env_tx.tx_type = TransactionType::Eip7702 as u8;
319+
}
320+
314321
let trace = match tx_kind {
315322
TxKind::Create => {
316323
let deploy_result = executor.deploy(from, input, value, None);

0 commit comments

Comments
 (0)