Skip to content

Commit

Permalink
replace '%s' to %q (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamminh0811 authored Oct 30, 2023
1 parent 8d361ad commit 9d69d78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/interchainstaking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,15 +430,15 @@ func (k *Keeper) SetParams(ctx sdk.Context, params types.Params) {
func (k *Keeper) GetChainID(ctx sdk.Context, connectionID string) (string, error) {
conn, found := k.IBCKeeper.ConnectionKeeper.GetConnection(ctx, connectionID)
if !found {
return "", fmt.Errorf("invalid connection id, \"%s\" not found", connectionID)
return "", fmt.Errorf("invalid connection id, %q not found", connectionID)
}
clientState, found := k.IBCKeeper.ClientKeeper.GetClientState(ctx, conn.ClientId)
if !found {
return "", fmt.Errorf("client id \"%s\" not found for connection \"%s\"", conn.ClientId, connectionID)
return "", fmt.Errorf("client id %q not found for connection %q", conn.ClientId, connectionID)
}
client, ok := clientState.(*ibctmtypes.ClientState)
if !ok {
return "", fmt.Errorf("invalid client state for client \"%s\" on connection \"%s\"", conn.ClientId, connectionID)
return "", fmt.Errorf("invalid client state for client %q on connection %q", conn.ClientId, connectionID)
}

return client.ChainId, nil
Expand Down

0 comments on commit 9d69d78

Please sign in to comment.