From 9577c9968489623a5770749559cebb5eb0878072 Mon Sep 17 00:00:00 2001 From: Francesco Dainese Date: Fri, 12 Jul 2024 20:01:58 +0200 Subject: [PATCH] fix(script:zk): persist metadata with skipped sim --- crates/script/src/simulate.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/script/src/simulate.rs b/crates/script/src/simulate.rs index 98df1e7fa..8fdf43e09 100644 --- a/crates/script/src/simulate.rs +++ b/crates/script/src/simulate.rs @@ -230,6 +230,7 @@ impl PreSimulationState { .into_iter() .map(|btx| { let mut tx = TransactionWithMetadata::from_tx_request(btx.transaction); + tx.zk = btx.zk_tx.map(|metadata| ZkTransaction { factory_deps: metadata.factory_deps }); tx.rpc = btx.rpc.expect("missing broadcastable tx rpc url"); tx })