Skip to content

Commit

Permalink
fix: mixed up var names
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 3, 2024
1 parent 9a5c3f2 commit 1589ef1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/rs-drive-abci/src/abci/handler/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ where
let last_block_height = platform_state.last_committed_block_height() as i64;

// Verify that Platform State corresponds to Drive commited state
let drive_storage_root_hash = platform_state
let platform_state_app_hash = platform_state
.last_committed_block_app_hash()
.unwrap_or_default();

Expand All @@ -34,7 +34,7 @@ where
.drive
.grove_version;

let platform_state_app_hash = app
let drive_storage_root_hash = app
.platform()
.drive
.grove
Expand Down
4 changes: 2 additions & 2 deletions packages/rs-drive-abci/src/abci/handler/prepare_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ where
let platform_state = app.platform().state.load();

// Verify that Platform State corresponds to Drive commited state
let drive_storage_root_hash = platform_state
let platform_state_app_hash = platform_state
.last_committed_block_app_hash()
.unwrap_or_default();

Expand All @@ -46,7 +46,7 @@ where
.drive
.grove_version;

let platform_state_app_hash = app
let drive_storage_root_hash = app
.platform()
.drive
.grove
Expand Down
4 changes: 2 additions & 2 deletions packages/rs-drive-abci/src/abci/handler/process_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ where
let platform_state = app.platform().state.load();

// Verify that Platform State corresponds to Drive commited state
let drive_storage_root_hash = platform_state
let platform_state_app_hash = platform_state
.last_committed_block_app_hash()
.unwrap_or_default();

Expand All @@ -190,7 +190,7 @@ where
.drive
.grove_version;

let platform_state_app_hash = app
let drive_storage_root_hash = app
.platform()
.drive
.grove
Expand Down

0 comments on commit 1589ef1

Please sign in to comment.