From 53c7163bd8204aad9eac3c97f385dac751c6f81e Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Mon, 23 Dec 2024 17:38:49 +0100 Subject: [PATCH] rename method --- crates/script/src/broadcast.rs | 2 +- crates/strategy/zksync/src/executor.rs | 4 ++-- crates/strategy/zksync/src/lib.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/script/src/broadcast.rs b/crates/script/src/broadcast.rs index ff6a00367..99abf2ea7 100644 --- a/crates/script/src/broadcast.rs +++ b/crates/script/src/broadcast.rs @@ -73,7 +73,7 @@ pub async fn send_transaction( ) -> Result { let zk_tx_meta = if let SendTransactionKind::Raw(tx, _) | SendTransactionKind::Unlocked(tx) = &mut kind { - foundry_strategy_zksync::try_get_zksync_transaction_context(&tx.other) + foundry_strategy_zksync::try_get_zksync_transaction_metadata(&tx.other) } else { None }; diff --git a/crates/strategy/zksync/src/executor.rs b/crates/strategy/zksync/src/executor.rs index b13f52704..447693fd8 100644 --- a/crates/strategy/zksync/src/executor.rs +++ b/crates/strategy/zksync/src/executor.rs @@ -232,12 +232,12 @@ impl ExecutorStrategyExt for ZksyncExecutorStrategyRunner { other_fields: OtherFields, ) { let ctx = get_context(ctx); - let transaction_context = try_get_zksync_transaction_context(&other_fields); + let transaction_context = try_get_zksync_transaction_metadata(&other_fields); ctx.transaction_context = transaction_context; } } -pub fn try_get_zksync_transaction_context( +pub fn try_get_zksync_transaction_metadata( other_fields: &OtherFields, ) -> Option { other_fields diff --git a/crates/strategy/zksync/src/lib.rs b/crates/strategy/zksync/src/lib.rs index f85c19456..33c144293 100644 --- a/crates/strategy/zksync/src/lib.rs +++ b/crates/strategy/zksync/src/lib.rs @@ -12,5 +12,6 @@ mod executor; pub use backend::ZksyncBackendStrategyRunner; pub use cheatcode::ZksyncCheatcodeInspectorStrategyRunner; pub use executor::{ - try_get_zksync_transaction_context, ZksyncExecutorStrategyBuilder, ZksyncExecutorStrategyRunner, + try_get_zksync_transaction_metadata, ZksyncExecutorStrategyBuilder, + ZksyncExecutorStrategyRunner, };