Skip to content

Commit

Permalink
fix encoding tx
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Feb 26, 2024
1 parent 0001263 commit a6608d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@ func NewNoisApp(
wasmOpts []wasmkeeper.Option,
baseAppOptions ...func(*baseapp.BaseApp),
) *NoisApp {
appCodec, legacyAmino := encodingConfig.Codec, encodingConfig.Amino
appCodec, cdc := encodingConfig.Codec, encodingConfig.Amino
interfaceRegistry := encodingConfig.InterfaceRegistry

bApp := baseapp.NewBaseApp(appName, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp.SetCommitMultiStoreTracer(traceStore)
bApp.SetVersion(version.Version)
bApp.SetInterfaceRegistry(interfaceRegistry)
bApp.SetTxEncoder(encodingConfig.TxConfig.TxEncoder())

keys := sdk.NewKVStoreKeys(
KVStoreKeys()...,
Expand All @@ -203,7 +204,7 @@ func NewNoisApp(

app := &NoisApp{
BaseApp: bApp,
legacyAmino: legacyAmino,
legacyAmino: cdc,
appCodec: appCodec,
interfaceRegistry: interfaceRegistry,
keys: keys,
Expand All @@ -213,7 +214,7 @@ func NewNoisApp(

app.ParamsKeeper = initParamsKeeper(
appCodec,
legacyAmino,
cdc,
keys[paramstypes.StoreKey],
tKeys[paramstypes.TStoreKey])

Expand Down Expand Up @@ -286,7 +287,7 @@ func NewNoisApp(
authtypes.NewModuleAddress(govtypes.ModuleName).String())

app.SlashingKeeper = slashingkeeper.NewKeeper(
appCodec, legacyAmino, keys[slashingtypes.StoreKey], app.StakingKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(),
appCodec, cdc, keys[slashingtypes.StoreKey], app.StakingKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
app.CrisisKeeper = *crisiskeeper.NewKeeper(
appCodec,
Expand Down

0 comments on commit a6608d4

Please sign in to comment.