Skip to content

Commit

Permalink
fmt simapp
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Nov 7, 2024
1 parent 65dd448 commit 171b07d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion simapp/export.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 9 additions & 3 deletions simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/cosmos/cosmos-sdk/codec/address"
"math/rand"
"os"
"strconv"
Expand All @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 171b07d

Please sign in to comment.