Skip to content

Commit

Permalink
Fix overflow (#464)
Browse files Browse the repository at this point in the history
* Fix overflow

* Revert "subxt update (#462)"

This reverts commit 687ff2f.

(cherry picked from commit e868518)
  • Loading branch information
vmarkushin committed Feb 9, 2024
1 parent 50eb36a commit d7ff1cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hyperspace/parachain/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ where
// this update is required
let base =
if cfg!(test) { (session_length / 2) as u64 } else { (session_length / 12) as u64 };
let diff = latest_height - latest_client_height_on_counterparty;
let diff = latest_height.saturating_sub(latest_client_height_on_counterparty);
let pruning_len = 256;
Ok(diff >= base.min(pruning_len as u64))
}
Expand Down
2 changes: 1 addition & 1 deletion utils/subxt/generated/src/composable/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31585,7 +31585,7 @@ pub mod api {
module_id: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 24)]
PushWasmCode { wasm_code_id: ::std::vec::Vec<::core::primitive::u8> },
PushWasmCode { wasm_checksum: ::std::vec::Vec<::core::primitive::u8> },
}
}
pub mod ics20_fee {
Expand Down
2 changes: 1 addition & 1 deletion utils/subxt/generated/src/picasso_kusama/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35933,7 +35933,7 @@ pub mod api {
module_id: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 24)]
PushWasmCode { wasm_code_id: ::std::vec::Vec<::core::primitive::u8> },
PushWasmCode { wasm_checksum: ::std::vec::Vec<::core::primitive::u8> },
}
}
pub mod ics20_fee {
Expand Down

0 comments on commit d7ff1cc

Please sign in to comment.