diff --git a/simapp/export.go b/simapp/export.go index cf517067..a2227fbd 100644 --- a/simapp/export.go +++ b/simapp/export.go @@ -1,11 +1,11 @@ package simapp import ( - storetypes "cosmossdk.io/store/types" "encoding/json" "fmt" "log" + storetypes "cosmossdk.io/store/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index c63a500a..307665f6 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -7,7 +7,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/cosmos/cosmos-sdk/codec/address" "math/rand" "os" "strconv" @@ -28,6 +27,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/address" codectypes "github.com/cosmos/cosmos-sdk/codec/types" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" @@ -435,7 +435,10 @@ func AddTestAddrsFromPubKeys( pubKeys []cryptotypes.PubKey, accAmt math.Int, ) { - bondDemo, _ := app.StakingKeeper.BondDenom(ctx) + bondDemo, err := app.StakingKeeper.BondDenom(ctx) + if err != nil { + panic(err) + } initCoins := sdk.NewCoins(sdk.NewCoin(bondDemo, accAmt)) for _, pk := range pubKeys { @@ -468,7 +471,10 @@ func addTestAddrs( strategy GenerateAccountStrategy, ) []sdk.AccAddress { testAddrs := strategy(accNum) - bondDemon, _ := app.StakingKeeper.BondDenom(ctx) + bondDemon, err := app.StakingKeeper.BondDenom(ctx) + if err != nil { + panic(err) + } initCoins := sdk.NewCoins(sdk.NewCoin(bondDemon, accAmt)) for _, addr := range testAddrs {