Skip to content

Commit

Permalink
chore: use version function for invoke account tx
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Jul 31, 2024
1 parent c859c5e commit 43f5ba5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/blockifier/src/transaction/account_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ impl HasRelatedFeeType for AccountTransaction {
match self {
Self::Declare(tx) => tx.tx.version(),
Self::DeployAccount(tx) => tx.tx.version(),
Self::Invoke(tx) => match tx.tx {
starknet_api::transaction::InvokeTransaction::V0(_) => TransactionVersion::ZERO,
starknet_api::transaction::InvokeTransaction::V1(_) => TransactionVersion::ONE,
starknet_api::transaction::InvokeTransaction::V3(_) => TransactionVersion::THREE,
},
Self::Invoke(tx) => tx.tx.version(),
}
}

Expand Down

0 comments on commit 43f5ba5

Please sign in to comment.