Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Dec 23, 2024
1 parent 98f04be commit 53c7163
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/script/src/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub async fn send_transaction(
) -> Result<TxHash> {
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
};
Expand Down
4 changes: 2 additions & 2 deletions crates/strategy/zksync/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ZkTransactionMetadata> {
other_fields
Expand Down
3 changes: 2 additions & 1 deletion crates/strategy/zksync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 53c7163

Please sign in to comment.