Add MsgStoreCode and MsgInstantiateContract support to simulations (#831)
* Add MsgStoreCode and MsgInstantiateContract support to simulations * Check for permissions in codeInfo
This commit is contained in:
@@ -515,7 +515,7 @@ func NewWasmApp(
|
||||
distr.NewAppModule(appCodec, app.distrKeeper, app.accountKeeper, app.bankKeeper, app.stakingKeeper),
|
||||
staking.NewAppModule(appCodec, app.stakingKeeper, app.accountKeeper, app.bankKeeper),
|
||||
upgrade.NewAppModule(app.upgradeKeeper),
|
||||
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.stakingKeeper),
|
||||
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.stakingKeeper, app.accountKeeper, app.bankKeeper),
|
||||
evidence.NewAppModule(app.evidenceKeeper),
|
||||
feegrantmodule.NewAppModule(appCodec, app.accountKeeper, app.bankKeeper, app.FeeGrantKeeper, app.interfaceRegistry),
|
||||
authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.accountKeeper, app.bankKeeper, app.interfaceRegistry),
|
||||
@@ -632,7 +632,7 @@ func NewWasmApp(
|
||||
slashing.NewAppModule(appCodec, app.slashingKeeper, app.accountKeeper, app.bankKeeper, app.stakingKeeper),
|
||||
params.NewAppModule(app.paramsKeeper),
|
||||
evidence.NewAppModule(app.evidenceKeeper),
|
||||
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.stakingKeeper),
|
||||
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.stakingKeeper, app.accountKeeper, app.bankKeeper),
|
||||
ibc.NewAppModule(app.ibcKeeper),
|
||||
transferModule,
|
||||
)
|
||||
|
||||
@@ -20,4 +20,6 @@ const (
|
||||
DefaultWeightCommunitySpendProposal int = 5
|
||||
DefaultWeightTextProposal int = 5
|
||||
DefaultWeightParamChangeProposal int = 5
|
||||
DefaultWeightMsgStoreCode int = 100
|
||||
DefaultWeightMsgInstantiateContract int = 100
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user