Skip to content

Commit 1576bf4

Browse files
committed
fix to use app.WasmKeeper
1 parent eb07386 commit 1576bf4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/app.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func NewMinitiaApp(
299299
app.CapabilityKeeper.Seal()
300300

301301
// add keepers
302-
wasmKeeper := &wasmkeeper.Keeper{}
302+
app.WasmKeeper = &wasmkeeper.Keeper{}
303303

304304
accountKeeper := authkeeper.NewAccountKeeper(
305305
appCodec,
@@ -434,7 +434,7 @@ func NewMinitiaApp(
434434
transferIBCModule,
435435
// ics4wrapper: transfer -> move -> fee
436436
feeMiddleware,
437-
wasmKeeper,
437+
app.WasmKeeper,
438438
)
439439

440440
// create ibcfee middleware for transfer
@@ -522,7 +522,7 @@ func NewMinitiaApp(
522522

523523
// The last arguments can contain custom message handlers, and custom query handlers,
524524
// if we want to allow any custom callbacks
525-
*wasmKeeper = wasmkeeper.NewKeeper(
525+
*app.WasmKeeper = wasmkeeper.NewKeeper(
526526
appCodec,
527527
runtime.NewKVStoreService(keys[wasmtypes.StoreKey]),
528528
app.AccountKeeper,
@@ -543,7 +543,6 @@ func NewMinitiaApp(
543543
authorityAddr,
544544
wasmOpts...,
545545
)
546-
app.WasmKeeper = wasmKeeper
547546

548547
// x/auction module keeper initialization
549548

0 commit comments

Comments
 (0)