Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c764db6

Browse files
committedFeb 20, 2024
feat: verify client state 08-wasm
1 parent 1c8555a commit c764db6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎modules/light-clients/08-wasm/types/client_state.go

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ func (cs ClientState) VerifyMembership(
137137
path exported.Path,
138138
value []byte,
139139
) error {
140+
if cs.Status(ctx, clientStore, cdc) != exported.Active {
141+
return errorsmod.Wrapf(ibcerrors.ErrClientStatusNotActive, "client status is not active")
142+
}
143+
140144
proofHeight, ok := height.(clienttypes.Height)
141145
if !ok {
142146
return errorsmod.Wrapf(ibcerrors.ErrInvalidType, "expected %T, got %T", clienttypes.Height{}, height)

0 commit comments

Comments
 (0)
Please sign in to comment.