Skip to content

Commit

Permalink
chore(blockifier): a simple code cleanup in signature_length()
Browse files Browse the repository at this point in the history
  • Loading branch information
avivg-starkware committed Nov 17, 2024
1 parent 3ff0dcf commit 8706fa8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/blockifier/src/transaction/account_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8706fa8

Please sign in to comment.