Skip to content

Commit

Permalink
fix: Add transaction type to zk tx in cast send (#767)
Browse files Browse the repository at this point in the history
Add tx type to zk tx in cast send
  • Loading branch information
Jrigada authored Dec 4, 2024
1 parent da9586f commit 1ca471f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/cast/bin/cmd/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async fn cast_send<P: Provider<T, AnyNetwork>, T: Transport + Clone>(
async fn cast_send_zk<P: Provider<T, AnyNetwork>, Z: ZksyncProvider<T>, T: Transport + Clone>(
provider: P,
zk_provider: Z,
tx: WithOtherFields<TransactionRequest>,
mut tx: WithOtherFields<TransactionRequest>,
zksync_params: ZksyncParams,
cast_async: bool,
confs: u64,
Expand All @@ -277,6 +277,7 @@ async fn cast_send_zk<P: Provider<T, AnyNetwork>, Z: ZksyncProvider<T>, 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);
Expand Down

0 comments on commit 1ca471f

Please sign in to comment.