Skip to content

Commit 39709fb

Browse files
committed
register in query
1 parent 29e0895 commit 39709fb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/app.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,6 @@ func New(
851851
app.BasicModuleManager.RegisterLegacyAminoCodec(cdc)
852852
app.BasicModuleManager.RegisterInterfaces(interfaceRegistry)
853853

854-
// for decoding legacy transactions whose messages are removed
855-
RegisterLegacyCodec(encodingConfig.Amino)
856-
RegisterLegacyInterfaces(encodingConfig.InterfaceRegistry)
857-
858854
// During begin block slashing happens after distr.BeginBlocker so that
859855
// there is nothing left over in the validator fee pool, so as to keep the
860856
// CanWithdrawInvariant invariant.

cmd/cronosd/cmd/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ func NewRootCmd() *cobra.Command {
6767
simtestutil.NewAppOptionsWithFlagHome(app.DefaultNodeHome),
6868
)
6969
encodingConfig := tempApp.EncodingConfig()
70+
// for decoding legacy transactions whose messages are removed
71+
app.RegisterLegacyCodec(encodingConfig.Amino)
72+
app.RegisterLegacyInterfaces(encodingConfig.InterfaceRegistry)
7073
initClientCtx := client.Context{}.
7174
WithCodec(encodingConfig.Codec).
7275
WithInterfaceRegistry(encodingConfig.InterfaceRegistry).

0 commit comments

Comments
 (0)