Skip to content

Commit

Permalink
Fix typo in querying events (#8773)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored Mar 3, 2021
1 parent be48479 commit eef8d4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/staking/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func delegatorTxsHandlerFn(clientCtx client.Context) http.HandlerFunc {

// For each case, we search txs for both:
// - legacy messages: their Type() is a custom string, e.g. "delegate"
// - service Msgs: their Type() is their FQ method name, e.g. "/cosmos.staking.v1beta1.Msg/Deledate"
// - service Msgs: their Type() is their FQ method name, e.g. "/cosmos.staking.v1beta1.Msg/Delegate"
// and we combine the results.
switch {
case isBondTx:
Expand Down
2 changes: 1 addition & 1 deletion x/staking/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
TypeSvcMsgUndelegate = "/cosmos.staking.v1beta1.Msg/Undelegate"
TypeSvcMsgEditValidator = "/cosmos.staking.v1beta1.Msg/EditValidator"
TypeSvcMsgCreateValidator = "/cosmos.staking.v1beta1.Msg/CreateValidator"
TypeSvcMsgDelegate = "/cosmos.staking.v1beta1.Msg/Deledate"
TypeSvcMsgDelegate = "/cosmos.staking.v1beta1.Msg/Delegate"
TypeSvcMsgBeginRedelegate = "/cosmos.staking.v1beta1.Msg/BeginRedelegate"
)

Expand Down

0 comments on commit eef8d4d

Please sign in to comment.