Skip to content

Commit

Permalink
Improve is_tx_version_valid description
Browse files Browse the repository at this point in the history
  • Loading branch information
immrsd committed Nov 19, 2024
1 parent 73493f6 commit ff38c5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/account/src/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ pub fn execute_calls(calls: Span<Call>) -> Array<Span<felt252>> {
res
}

/// - If the transaction is a simulation (version >= `QUERY_OFFSET`), it must be
/// greater than or equal to `QUERY_OFFSET` + `MIN_TRANSACTION_VERSION`.
/// If the transaction is a simulation (version >= `QUERY_OFFSET`), it must be
/// greater than or equal to `QUERY_OFFSET` + `MIN_TRANSACTION_VERSION` to be considered valid.
/// Otherwise, it must be greater than or equal to `MIN_TRANSACTION_VERSION`.
pub fn is_tx_version_valid() -> bool {
let tx_info = starknet::get_tx_info().unbox();
let tx_version = tx_info.version.into();
Expand Down

0 comments on commit ff38c5e

Please sign in to comment.