From bb05e10dd8af1be71fbca951f2b158cd2e7506d1 Mon Sep 17 00:00:00 2001 From: Aviv Greenburg Date: Sun, 17 Nov 2024 14:23:32 +0200 Subject: [PATCH] chore(blockifier): a simple code cleanup in sugnature_length() --- crates/blockifier/src/transaction/account_transaction.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/blockifier/src/transaction/account_transaction.rs b/crates/blockifier/src/transaction/account_transaction.rs index bc2ab3ecec..7305411a83 100644 --- a/crates/blockifier/src/transaction/account_transaction.rs +++ b/crates/blockifier/src/transaction/account_transaction.rs @@ -229,13 +229,7 @@ impl AccountTransaction { } pub fn signature_length(&self) -> usize { - let signature = match &self.tx { - Transaction::Declare(tx) => tx.signature(), - Transaction::DeployAccount(tx) => tx.signature(), - Transaction::Invoke(tx) => tx.signature(), - }; - - signature.0.len() + self.signature().0.len() } pub fn tx_hash(&self) -> TransactionHash {