File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 ).
You can’t perform that action at this time.
0 commit comments