remove unnecessary func (#6746)
This commit is contained in:
parent
ebc3ad6843
commit
10783f27d0
|
@ -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...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue