Skip to content

Commit

Permalink
fix. hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 16, 2024
1 parent 4ca2d1b commit c3fda74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/launch/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (k Keeper) RequestCreated(
content types.RequestContent,
) error {
if k.hooks == nil {
return types.ErrHookNotImplemented
return nil
}
return k.hooks.RequestCreated(
ctx,
Expand Down
1 change: 0 additions & 1 deletion x/launch/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ var (
ErrInvalidModuleName = sdkerrors.Register(ModuleName, 1136, "invalid module name")
ErrInvalidParamName = sdkerrors.Register(ModuleName, 1137, "invalid param name")
ErrChainNotFound = sdkerrors.Register(ModuleName, 1138, "chain not found for launch id")
ErrHookNotImplemented = sdkerrors.Register(ModuleName, 1139, "launch hooks not implemented")
)
2 changes: 1 addition & 1 deletion x/monitoringc/keeper/msg_server_create_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func Test_msgServer_CreateClient(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
res, err := ts.MonitoringcSrv.CreateClient(ctx, &tt.msg)
if tt.err != nil {
require.ErrorIs(t, tt.err, err)
require.ErrorIs(t, err, tt.err)
return
}
require.NoError(t, err)
Expand Down

0 comments on commit c3fda74

Please sign in to comment.