Skip to content

Commit

Permalink
clean lints
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Mar 3, 2024
1 parent 8b1140e commit e8c4357
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func TestAppImportExport(t *testing.T) {
ctxA := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()})
ctxB := newApp.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()})
_, err = newApp.InitChainer(ctxB, initReq)

if err != nil {
if strings.Contains(err.Error(), "validator set is empty after InitGenesis") {
t.Log("Skipping simulation as all validators have been unbonded")
Expand Down
4 changes: 0 additions & 4 deletions cmd/wasmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import (
"github.com/cosmos/cosmos-sdk/client/pruning"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/snapshot"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/server"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -96,8 +94,6 @@ func initAppConfig() (string, interface{}) {
func initRootCmd(
rootCmd *cobra.Command,
txConfig client.TxConfig,
interfaceRegistry codectypes.InterfaceRegistry,
appCodec codec.Codec,
basicManager module.BasicManager,
) {
cfg := sdk.GetConfig()
Expand Down
2 changes: 1 addition & 1 deletion cmd/wasmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func NewRootCmd() *cobra.Command {
},
}

initRootCmd(rootCmd, encodingConfig.TxConfig, encodingConfig.InterfaceRegistry, encodingConfig.Codec, tempApp.BasicModuleManager)
initRootCmd(rootCmd, encodingConfig.TxConfig, tempApp.BasicModuleManager)

// add keyring to autocli opts
autoCliOpts := tempApp.AutoCliOpts()
Expand Down
1 change: 0 additions & 1 deletion x/wasm/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func parseStoreCodeArgs(file, sender string, flags *flag.FlagSet) (types.MsgStor
// gzip the wasm file
if ioutils.IsWasm(wasm) {
wasm, err = ioutils.GzipIt(wasm)

if err != nil {
return types.MsgStoreCode{}, err
}
Expand Down
3 changes: 2 additions & 1 deletion x/wasm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ func TestInstantiateWithContractFactoryChildQueriesParent(t *testing.T) {
},
},
},
}},
},
},
}, 0, nil
}

Expand Down
2 changes: 1 addition & 1 deletion x/wasm/migrations/v1/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func TestMigrate1To2(t *testing.T) {
var AvailableCapabilities = []string{"iterator", "staking", "stargate", "cosmwasm_1_1"}
AvailableCapabilities := []string{"iterator", "staking", "stargate", "cosmwasm_1_1"}
ctx, keepers := keeper.CreateTestInput(t, false, AvailableCapabilities)
wasmKeeper := keepers.WasmKeeper

Expand Down
2 changes: 1 addition & 1 deletion x/wasm/migrations/v3/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func TestMigrate3To4(t *testing.T) {
var AvailableCapabilities = []string{"iterator", "staking", "stargate", "cosmwasm_1_1"}
AvailableCapabilities := []string{"iterator", "staking", "stargate", "cosmwasm_1_1"}
ctx, keepers := keeper.CreateTestInput(t, false, AvailableCapabilities)
store := ctx.KVStore(keepers.WasmStoreKey)
cdc := moduletestutil.MakeTestEncodingConfig(wasm.AppModuleBasic{}).Codec
Expand Down

0 comments on commit e8c4357

Please sign in to comment.