Skip to content

Commit

Permalink
docs: fix gRPC status error code
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite authored Nov 25, 2024
1 parent 59ec254 commit 5efb353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/develop/developer_guide/adding_params.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Prepare `x/examplemod/keeper/msg_server_update_param.go` to handle parameter upd
+
+ if k.GetAuthority() != msg.Authority {
+ return nil, status.Error(
+ codes.InvalidArgument,
+ codes.PermissionDenied,
+ examplemodtypes.ErrExamplemodInvalidSigner.Wrapf(
+ "invalid authority; expected %s, got %s",
+ k.GetAuthority(), msg.Authority,
Expand Down

0 comments on commit 5efb353

Please sign in to comment.