From 1ca471f4f625196466a948246d74351e09447dfb Mon Sep 17 00:00:00 2001 From: Juan Rigada <62958725+Jrigada@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:42:59 -0300 Subject: [PATCH] fix: Add transaction type to zk tx in cast send (#767) Add tx type to zk tx in cast send --- crates/cast/bin/cmd/send.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/cast/bin/cmd/send.rs b/crates/cast/bin/cmd/send.rs index 930db113d..7361983d0 100644 --- a/crates/cast/bin/cmd/send.rs +++ b/crates/cast/bin/cmd/send.rs @@ -262,7 +262,7 @@ async fn cast_send, T: Transport + Clone>( async fn cast_send_zk, Z: ZksyncProvider, T: Transport + Clone>( provider: P, zk_provider: Z, - tx: WithOtherFields, + mut tx: WithOtherFields, zksync_params: ZksyncParams, cast_async: bool, confs: u64, @@ -277,6 +277,7 @@ async fn cast_send_zk, Z: ZksyncProvider, T: Trans paymaster_input: Bytes::from_str(&input).expect("Invalid paymaster input"), }); + tx.inner.transaction_type = Some(zksync_types::l2::TransactionType::EIP712Transaction as u8); let mut zk_tx: ZkTransactionRequest = tx.inner.clone().into(); if let Some(paymaster_params) = paymaster_params { zk_tx.set_paymaster(paymaster_params);