remove unnecessary func (#6746)

This commit is contained in:
colin axner 2020-07-16 16:31:06 +02:00 committed by GitHub
parent ebc3ad6843
commit 10783f27d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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...)
}