Skip to content

Commit

Permalink
light-clients: update revision number for cf-guest and cf-solana to 1 (
Browse files Browse the repository at this point in the history
…#392)

This is to increase compatibility with other libraries which fail to
properly decode proto3 message with missing revision number field
(missing fields should be decoded as zero in proto3).
  • Loading branch information
dhruvja authored Oct 15, 2024
1 parent d84dc54 commit 8ff95be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/cf-guest/src/client/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ where
ctx.store_consensus_state(
ibc::path::ClientConsensusStatePath::new(
client_id.clone(),
0,
1,
u64::from(self.latest_height),
),
consensus_state.into(),
Expand Down
2 changes: 1 addition & 1 deletion common/cf-solana/src/client/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ where
ctx.store_consensus_state(
ibc::path::ClientConsensusStatePath::new(
client_id.clone(),
0,
1,
self.latest_slot.get(),
),
consensus_state.into(),
Expand Down

0 comments on commit 8ff95be

Please sign in to comment.