From eef8d4dc5dde90a99587c95be565867e2b9e9725 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaurym@users.noreply.github.com> Date: Wed, 3 Mar 2021 19:13:16 +0100 Subject: [PATCH] Fix typo in querying events (#8773) --- x/staking/client/rest/query.go | 2 +- x/staking/types/msg.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/staking/client/rest/query.go b/x/staking/client/rest/query.go index 7fae344d67..172ab477b7 100644 --- a/x/staking/client/rest/query.go +++ b/x/staking/client/rest/query.go @@ -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: diff --git a/x/staking/types/msg.go b/x/staking/types/msg.go index eda27b768a..d1da12386a 100644 --- a/x/staking/types/msg.go +++ b/x/staking/types/msg.go @@ -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" )