From 10783f27d0cf822e9c04033974f9c611998a24aa Mon Sep 17 00:00:00 2001 From: colin axner <25233464+colin-axner@users.noreply.github.com> Date: Thu, 16 Jul 2020 16:31:06 +0200 Subject: [PATCH] remove unnecessary func (#6746) --- x/ibc/02-client/client/utils/utils.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/x/ibc/02-client/client/utils/utils.go b/x/ibc/02-client/client/utils/utils.go index b8754e8902..4430d05fee 100644 --- a/x/ibc/02-client/client/utils/utils.go +++ b/x/ibc/02-client/client/utils/utils.go @@ -44,7 +44,7 @@ func QueryClientState( ) (types.StateResponse, error) { req := abci.RequestQuery{ Path: "store/ibc/key", - Data: prefixClientKey(clientID, host.KeyClientState()), + Data: host.FullKeyClientPath(clientID, host.KeyClientState()), Prove: prove, } @@ -72,7 +72,7 @@ func QueryConsensusState( req := abci.RequestQuery{ Path: "store/ibc/key", - Data: prefixClientKey(clientID, host.KeyConsensusState(height)), + Data: host.FullKeyClientPath(clientID, host.KeyConsensusState(height)), Prove: prove, } @@ -155,7 +155,3 @@ func QueryNodeConsensusState(clientCtx client.Context) (ibctmtypes.ConsensusStat return state, height, nil } - -func prefixClientKey(clientID string, key []byte) []byte { - return append([]byte(fmt.Sprintf("clients/%s/", clientID)), key...) -}