Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown unknown committed Aug 3, 2023
1 parent 691314e commit 13072b2
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,18 @@ func NewAppKeeper(
)
appKeepers.OrderbookKeeper.SetHouseKeeper(appKeepers.HouseKeeper)

appKeepers.SubaccountKeeper = subaccountkeeper.NewKeeper(
appCodec,
appKeepers.keys[subaccounttypes.StoreKey],
appKeepers.GetSubspace(subaccounttypes.ModuleName),
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
appKeepers.OVMKeeper,
appKeepers.BetKeeper,
appKeepers.OrderbookKeeper,
appKeepers.HouseKeeper,
)

// // SGE modules \\\\

appKeepers.BetModule = betmodule.NewAppModule(
Expand Down Expand Up @@ -431,17 +443,7 @@ func NewAppKeeper(
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
)
appKeepers.SubaccountKeeper = subaccountkeeper.NewKeeper(
appCodec,
appKeepers.keys[subaccounttypes.StoreKey],
appKeepers.GetSubspace(subaccounttypes.ModuleName),
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
appKeepers.OVMKeeper,
appKeepers.BetKeeper,
appKeepers.OrderbookKeeper,
appKeepers.HouseKeeper,
)

appKeepers.SubaccountModule = subaccount.NewAppModule(*appKeepers.SubaccountKeeper)

// Create static IBC router, add transfer route, then set and seal it
Expand Down

0 comments on commit 13072b2

Please sign in to comment.