Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
chore: rename post_version
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Nov 7, 2022
1 parent 170b40d commit 391e65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/state-validator/src/verifications/revert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ fn check_reverted_blocks(
};
let account_merkle_state = reverted_blocks[0].prev_account();
let tip_block_hash = reverted_blocks[0].parent_block_hash();
let version: u8 = prev_global_state.version().into();
let last_finalized = if version < 2 {
let post_version: u8 = post_global_state.version().into();
let last_finalized = if post_version < 2 {
let tip_number: u64 = reverted_blocks[0].number().unpack();
let finalized_number = tip_number
.saturating_sub(1)
Expand Down

0 comments on commit 391e65b

Please sign in to comment.