Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Nov 8, 2024
1 parent a44cfdb commit b313340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion simapp/app_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func NewSimApp(
// register streaming services
if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil {
logger.Error("failed to register streaming services", "err", err)
os.Exit(1)
panic(err)
}

// initParamsKeeper(app.ParamsKeeper)
Expand Down
8 changes: 4 additions & 4 deletions simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ func AddTestAddrsFromPubKeys(
pubKeys []cryptotypes.PubKey,
accAmt math.Int,
) {
bondDemo, err := app.StakingKeeper.BondDenom(ctx)
bondDenom, err := app.StakingKeeper.BondDenom(ctx)
if err != nil {
panic(err)
}
initCoins := sdk.NewCoins(sdk.NewCoin(bondDemo, accAmt))
initCoins := sdk.NewCoins(sdk.NewCoin(bondDenom, accAmt))

for _, pk := range pubKeys {
initAccountWithCoins(app, ctx, sdk.AccAddress(pk.Address()), initCoins)
Expand Down Expand Up @@ -471,11 +471,11 @@ func addTestAddrs(
strategy GenerateAccountStrategy,
) []sdk.AccAddress {
testAddrs := strategy(accNum)
bondDemon, err := app.StakingKeeper.BondDenom(ctx)
bondDenom, err := app.StakingKeeper.BondDenom(ctx)
if err != nil {
panic(err)
}
initCoins := sdk.NewCoins(sdk.NewCoin(bondDemon, accAmt))
initCoins := sdk.NewCoins(sdk.NewCoin(bondDenom, accAmt))

for _, addr := range testAddrs {
initAccountWithCoins(app, ctx, addr, initCoins)
Expand Down

0 comments on commit b313340

Please sign in to comment.