Skip to content

Commit

Permalink
Merge pull request #2 from GNaD13/gnad/revert-122-v0.47.x-gnad
Browse files Browse the repository at this point in the history
encCdc.Marshaler -> app.AppCodec()
  • Loading branch information
GNaD13 authored Dec 7, 2022
2 parents a79d148 + f97f541 commit bc8b688
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import (
"encoding/json"
"time"

"github.com/cosmos/cosmos-sdk/client/flags"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
"github.com/cosmos/cosmos-sdk/server"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -46,9 +48,9 @@ func setup(withGenesis bool, invCheckPeriod uint) (*SimApp, GenesisState) {
appOptions[flags.FlagHome] = DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = invCheckPeriod

app := NewSimApp(log.NewNopLogger(), db, nil, true, appOptions)
app := NewSimApp(log.NewNopLogger(), db, nil, true, appOptions)
if withGenesis {
return app, NewDefaultGenesisState(encCdc.Marshaler)
return app, NewDefaultGenesisState(app.AppCodec())
}
return app, GenesisState{}
}
Expand Down Expand Up @@ -200,5 +202,3 @@ func SetupWithGenesisAccounts(genAccs []authtypes.GenesisAccount, balances ...ba

return app
}

func NewAppOptionsWithFlagHome

0 comments on commit bc8b688

Please sign in to comment.