From fdce51cd97c536d851b42ad0eb40a290148269f0 Mon Sep 17 00:00:00 2001 From: NagaTulasi Date: Thu, 19 Sep 2024 10:31:29 +0530 Subject: [PATCH] remove gci from lint tests --- .golangci.yml | 2 +- chainclient/broadcast_tx.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 423668e..a534e83 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,7 +13,7 @@ linters: # - copyloopvar - goconst - gocritic - - gci + # - gci - gofumpt # - gosec - gosimple diff --git a/chainclient/broadcast_tx.go b/chainclient/broadcast_tx.go index 97b3de4..9b7b134 100644 --- a/chainclient/broadcast_tx.go +++ b/chainclient/broadcast_tx.go @@ -34,6 +34,10 @@ func ExecuteTX(ctx sdk.Context, msg types.MsgUpdateBlobStatusRequest, cdc codec. key := os.Getenv("KEY") keyName := key + if key == "" { + keyName = "alice" + } + // Create a keyring kr, err := keyring.New(sdk.KeyringServiceName(), keyring.BackendTest, homePath, os.Stdin, cdc.(codec.Codec)) if err != nil {