Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
chore: add comment for cosmos genesis time
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Dec 7, 2023
1 parent 16ac05f commit ad5dc48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ sov-state = { workspace = true }
sov-rollup-interface = { workspace = true }
jmt = { git = "https://github.com/penumbra-zone/jmt.git", rev = "1d007e11cb68aa5ca13e9a5af4a12e6439d5f7b6" }


[features]
default = ["native"]
native = [
Expand Down
1 change: 1 addition & 0 deletions mocks/src/cosmos/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl<S: ProvableStore + Default + Debug> MockCosmosChain<S> {

let genesis_height = Height::new(chain_id.revision_number(), 1).expect("never fails");

// This set to Jan 1, 2023 to comply with the genesis time of the mock rollup.
let genesis_time = Time::from_unix_timestamp(JAN_1_2023, 0).expect("never fails");

let genesis_block = Self::generate_block(
Expand Down
3 changes: 1 addition & 2 deletions modules/sov-ibc/src/query/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ where

let storage_value = value_with_proof.value.ok_or_else(|| {
to_jsonrpsee_error(format!(
"Consensus state not found for client {}",
client_id
"Consensus state not found for client {client_id:?}"
))
})?;

Expand Down

0 comments on commit ad5dc48

Please sign in to comment.