Skip to content

Commit

Permalink
log error from verify packet fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gjermundgaraba committed Oct 30, 2024
1 parent 9ffa999 commit 094c3f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/light-clients/08-wasm/light_client_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func (l LightClientModule) VerifyClientMessage(ctx sdk.Context, clientID string,
VerifyClientMessage: &types.VerifyClientMessageMsg{ClientMessage: clientMessage.Data},
}
_, err := l.keeper.WasmQuery(ctx, clientID, clientStore, clientState, payload)
if err != nil {
ctx.Logger().Error("Verify Client Message failed", "err", err)
}

return err
}

Expand Down Expand Up @@ -197,6 +201,7 @@ func (l LightClientModule) UpdateState(ctx sdk.Context, clientID string, clientM

res, err := l.keeper.WasmSudo(ctx, clientID, clientStore, clientState, payload)
if err != nil {
ctx.Logger().Error("Update State failed", "err", err)
panic(err)
}

Expand Down

0 comments on commit 094c3f3

Please sign in to comment.