refactor(x/simulation)!: remove accounts string (#20056)
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ func NewSimApp(
|
||||
return app
|
||||
}
|
||||
|
||||
// overwritte default ante handlers with custom ante handlers
|
||||
// overwrite default ante handlers with custom ante handlers
|
||||
// set SkipAnteHandler to true in app config and set custom ante handler on baseapp
|
||||
func (app *SimApp) setCustomAnteHandler() {
|
||||
anteHandler, err := NewAnteHandler(
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
|
||||
"github.com/cosmos/cosmos-sdk/server"
|
||||
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
@@ -72,6 +73,7 @@ func BenchmarkFullAppSimulation(b *testing.B) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
|
||||
// export state and simParams before the simulation error is checked
|
||||
|
||||
@@ -26,6 +26,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
|
||||
"github.com/cosmos/cosmos-sdk/server"
|
||||
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
@@ -92,6 +93,7 @@ func TestFullAppSimulation(t *testing.T) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
|
||||
// export state and simParams before the simulation error is checked
|
||||
@@ -140,6 +142,7 @@ func TestAppImportExport(t *testing.T) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
|
||||
// export state and simParams before the simulation error is checked
|
||||
@@ -261,6 +264,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
|
||||
// export state and simParams before the simulation error is checked
|
||||
@@ -313,6 +317,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
@@ -392,6 +397,7 @@ func TestAppStateDeterminism(t *testing.T) {
|
||||
BlockedAddresses(),
|
||||
config,
|
||||
app.AppCodec(),
|
||||
codectestutil.CodecOptions{}.GetAddressCodec(),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
epochstypes "cosmossdk.io/x/epochs/types"
|
||||
protocolpooltypes "cosmossdk.io/x/protocolpool/types"
|
||||
upgradetypes "cosmossdk.io/x/upgrade/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user