Skip to content

Commit

Permalink
chore: use version function for invoke account tx (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Jul 31, 2024
1 parent 20479ec commit 6870856
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 6870856

Please sign in to comment.