diff --git a/crates/blockifier/src/transaction/transaction_execution.rs b/crates/blockifier/src/transaction/transaction_execution.rs index f2fb174a845..6a75a5b5d23 100644 --- a/crates/blockifier/src/transaction/transaction_execution.rs +++ b/crates/blockifier/src/transaction/transaction_execution.rs @@ -97,6 +97,13 @@ impl Transaction { _ => unimplemented!(), } } + + pub fn tx_hash(tx: &Transaction) -> TransactionHash { + match tx { + Transaction::AccountTransaction(tx) => tx.tx_hash(), + Transaction::L1HandlerTransaction(tx) => tx.tx_hash, + } + } } impl TransactionInfoCreator for Transaction {