Skip to content

Commit

Permalink
register in query
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 5, 2024
1 parent 29e0895 commit 39709fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,6 @@ func New(
app.BasicModuleManager.RegisterLegacyAminoCodec(cdc)
app.BasicModuleManager.RegisterInterfaces(interfaceRegistry)

// for decoding legacy transactions whose messages are removed
RegisterLegacyCodec(encodingConfig.Amino)
RegisterLegacyInterfaces(encodingConfig.InterfaceRegistry)

// During begin block slashing happens after distr.BeginBlocker so that
// there is nothing left over in the validator fee pool, so as to keep the
// CanWithdrawInvariant invariant.
Expand Down
3 changes: 3 additions & 0 deletions cmd/cronosd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func NewRootCmd() *cobra.Command {
simtestutil.NewAppOptionsWithFlagHome(app.DefaultNodeHome),
)
encodingConfig := tempApp.EncodingConfig()
// for decoding legacy transactions whose messages are removed
app.RegisterLegacyCodec(encodingConfig.Amino)
app.RegisterLegacyInterfaces(encodingConfig.InterfaceRegistry)
initClientCtx := client.Context{}.
WithCodec(encodingConfig.Codec).
WithInterfaceRegistry(encodingConfig.InterfaceRegistry).
Expand Down

0 comments on commit 39709fb

Please sign in to comment.