Skip to content

Commit

Permalink
chore: remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksharmapoudel committed Oct 30, 2023
1 parent 738b6a5 commit 21becb3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion cmd/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ $ %s pth fch`, appName, defaultHome, appName)),
client, _, err := client.Repositories.DownloadContents(cmd.Context(), "cosmos", "chain-registry", regPath, nil)
if err != nil {
if errors.As(err, new(*github.RateLimitError)) {
fmt.Println("some paths failed: ", err)
break
}
fmt.Fprintf(cmd.ErrOrStderr(), "failure retrieving: %s: consider adding to cosmos/chain-registry: ERR: %v\n", pthName, err)
Expand Down
2 changes: 0 additions & 2 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1274,8 +1274,6 @@ func (cc *CosmosProvider) queryTMClientState(ctx context.Context, srch int64, sr
}
clientStateExported = clientState

Check warning on line 1275 in relayer/chains/cosmos/tx.go

View check run for this annotation

Codecov / codecov/patch

relayer/chains/cosmos/tx.go#L1268-L1275

Added lines #L1268 - L1275 were not covered by tests

// different handling for the icon client

}

tmClientState, ok := clientStateExported.(*tmclient.ClientState)

Check warning on line 1279 in relayer/chains/cosmos/tx.go

View check run for this annotation

Codecov / codecov/patch

relayer/chains/cosmos/tx.go#L1279

Added line #L1279 was not covered by tests
Expand Down
1 change: 0 additions & 1 deletion relayer/chains/icon/provider_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (icp *IconProvider) ClientToAny(clientId string, clientStateB []byte) (*cod
if err != nil {
return nil, err
}
fmt.Printf("is tendermint client: %s\n", clientState.GetChainID())

return clienttypes.PackClientState(&clientState)
}
Expand Down
2 changes: 0 additions & 2 deletions relayer/chains/icon/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (icp *IconProvider) QueryClientStateResponse(ctx context.Context, height in
"clientId": srcClientId,
}, callParamsWithHeight(types.NewHexInt(height)))

fmt.Println("[QueryClientStateResponse] callparams:", callParams)
//similar should be implemented
var clientStateB types.HexBytes
err := icp.client.Call(callParams, &clientStateB)
Expand All @@ -232,7 +231,6 @@ func (icp *IconProvider) QueryClientStateResponse(ctx context.Context, height in
if err != nil {
return nil, err
}
fmt.Printf("[QueryClientStateResponse] clientStateByte: %x \n ", clientStateB)

any, err := icp.ClientToAny(srcClientId, clientStateByte)
if err != nil {
Expand Down
4 changes: 0 additions & 4 deletions relayer/chains/penumbra/msg.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package penumbra

import (
"fmt"

"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
chantypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
Expand All @@ -24,7 +22,6 @@ func NewPenumbraMessage(msg sdk.Msg) provider.RelayerMessage {

func PenumbraMsg(rm provider.RelayerMessage) sdk.Msg {
if val, ok := rm.(PenumbraMessage); !ok {
fmt.Printf("got data of type %T but wanted PenumbraMessage \n", val)
return nil
} else {
return val.Msg
Expand Down Expand Up @@ -52,7 +49,6 @@ func PenumbraMsgs(rm ...provider.RelayerMessage) []sdk.Msg {
case cosmos.CosmosMessage:
sdkMsgs = append(sdkMsgs, rMsg.(cosmos.CosmosMessage).Msg)
default:
fmt.Printf("got data of type %T but wanted PenumbraMessage \n", rMsg)
return nil
}
}
Expand Down
3 changes: 0 additions & 3 deletions relayer/chains/wasm/helper_debug_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ func jsonDumpDataFile(filename string, bufs interface{}) {
// Marshal the slice of structs to JSON format
jsonData, err := json.MarshalIndent(bufs, "", " ")
if err != nil {
fmt.Println("Error marshaling slice of structs to JSON:", err)
os.Exit(1)
}

// Write JSON data to file
err = ioutil.WriteFile(filename, jsonData, 0644)
if err != nil {
fmt.Println("Error writing JSON to file:", err)
os.Exit(1)
}

Expand Down Expand Up @@ -68,7 +66,6 @@ func SaveMsgToFile(filename string, msgs []provider.RelayerMessage) {
var d []DataFormat
err := readExistingData(filename, &d)
if err != nil {
fmt.Println("error savingtoFile ", err)
return
}

Expand Down

0 comments on commit 21becb3

Please sign in to comment.