Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Mar 29, 2023
1 parent efb5a09 commit 14dd58f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/consensus/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParam
return nil, err
}

k.event.EventManager(goCtx).EmitKV(
if err := k.event.EventManager(goCtx).EmitKV(
goCtx,
"update_consensus_params",
event.Attribute{Key: "authority", Value: req.Authority},
event.Attribute{Key: "parameters", Value: consensusParams.String()})
event.Attribute{Key: "parameters", Value: consensusParams.String()}); err != nil {
return nil, err
}

return &types.MsgUpdateParamsResponse{}, nil
}

0 comments on commit 14dd58f

Please sign in to comment.