Skip to content

Commit

Permalink
Merge pull request #19 from datachainlab/update-lcp
Browse files Browse the repository at this point in the history
Update lcp to v0.2.10

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored Sep 12, 2024
2 parents 46d0e67 + 2068af0 commit 3706756
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 47 deletions.
60 changes: 20 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ serde = { version = "1.0", default-features = false }
displaydoc = { version = "0.2", default-features = false }
tiny-keccak = { version = "1.4" }

light-client = { git = "https://github.com/datachainlab/lcp", rev = "v0.2.9", default-features = false, features = ["ibc"] }
light-client = { git = "https://github.com/datachainlab/lcp", rev = "v0.2.10", default-features = false, features = ["ibc"] }
ethereum-ibc = { git = "https://github.com/datachainlab/ethereum-ibc-rs", rev = "v0.0.12", default-features = false }
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2022-10-22
nightly-2024-09-05
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]
#![allow(clippy::result_large_err)]
#![allow(clippy::large_enum_variant)]

Expand All @@ -14,6 +14,7 @@ pub mod message;
pub mod state;
pub use ethereum_ibc as ibc;

#[allow(unused_imports)]
mod internal_prelude {
pub use alloc::boxed::Box;
pub use alloc::format;
Expand Down
6 changes: 2 additions & 4 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ pub fn gen_state_id<const SYNC_COMMITTEE_SIZE: usize, const EXECUTION_PAYLOAD_TR
consensus_state: ConsensusState,
) -> Result<StateID, Error> {
Ok(gen_state_id_from_any(
&canonicalize_client_state(client_state).try_into().unwrap(),
&canonicalize_consensus_state(consensus_state)
.try_into()
.unwrap(),
&canonicalize_client_state(client_state).into(),
&canonicalize_consensus_state(consensus_state).into(),
)?)
}

0 comments on commit 3706756

Please sign in to comment.