Skip to content

Commit

Permalink
fix: remove duplicated oracle in app.go (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHansLee authored Dec 8, 2022
1 parent c684dde commit da05265
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ func New(
oracletypes.StoreKey,
wasm.StoreKey,
feegrant.StoreKey,
oracletypes.StoreKey,
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
Expand Down Expand Up @@ -462,13 +461,6 @@ func New(
wasmOpts...,
)

app.oracleKeeper = *oraclekeeper.NewKeeper(
appCodec,
keys[oracletypes.StoreKey],
keys[oracletypes.MemStoreKey],
app.GetSubspace(oracletypes.ModuleName),
)

// The gov proposal types can be individually enabled
if len(enabledWasmProposals) != 0 {
govRouter.AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.wasmKeeper, enabledWasmProposals))
Expand Down Expand Up @@ -522,7 +514,6 @@ func New(
burn.NewAppModule(appCodec, app.burnKeeper),
oracle.NewAppModule(appCodec, app.oracleKeeper),
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.StakingKeeper),
oracle.NewAppModule(appCodec, app.oracleKeeper),
)

// During begin block slashing happens after distr.BeginBlocker so that
Expand Down Expand Up @@ -835,7 +826,6 @@ func initParamsKeeper(appCodec codec.Codec, legacyAmino *codec.LegacyAmino, key,
paramsKeeper.Subspace(burntypes.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName)
paramsKeeper.Subspace(wasm.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName)

return paramsKeeper
}
Expand Down

0 comments on commit da05265

Please sign in to comment.