Skip to content

Commit 1285765

Browse files
committed
EELC5: improve consensus state validation
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent 972f979 commit 1285765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ibc/src/consensus_state.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ impl ConsensusState {
5353
Err(Error::UninitializedConsensusStateField(
5454
"current_sync_committee",
5555
))
56+
} else if self.next_sync_committee == PublicKey::default() {
57+
Err(Error::UninitializedConsensusStateField(
58+
"next_sync_committee",
59+
))
5660
} else {
5761
Ok(())
5862
}

0 commit comments

Comments
 (0)