chore!: remove deprecated code (#17985)
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
//go:build test_amino
|
||||
// +build test_amino
|
||||
|
||||
package params
|
||||
|
||||
import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
||||
)
|
||||
|
||||
// MakeTestEncodingConfig creates an EncodingConfig for an amino based test configuration.
|
||||
// This function should be used only internally (in the SDK).
|
||||
// App user should'nt create new codecs - use the app.AppCodec instead.
|
||||
// Deprecated:
|
||||
func MakeTestEncodingConfig() EncodingConfig {
|
||||
cdc := codec.NewLegacyAmino()
|
||||
interfaceRegistry := types.NewInterfaceRegistry()
|
||||
marshaler := codec.NewAminoCodec(cdc)
|
||||
|
||||
return EncodingConfig{
|
||||
InterfaceRegistry: interfaceRegistry,
|
||||
Marshaler: marshaler,
|
||||
TxConfig: legacytx.StdTxConfig{Cdc: cdc},
|
||||
Amino: cdc,
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
//go:build !test_amino
|
||||
// +build !test_amino
|
||||
|
||||
package params
|
||||
|
||||
import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/tx"
|
||||
)
|
||||
|
||||
// MakeTestEncodingConfig creates an EncodingConfig for a non-amino based test configuration.
|
||||
// This function should be used only internally (in the SDK).
|
||||
// App user should'nt create new codecs - use the app.AppCodec instead.
|
||||
// Deprecated:
|
||||
func MakeTestEncodingConfig() EncodingConfig {
|
||||
cdc := codec.NewLegacyAmino()
|
||||
interfaceRegistry := types.NewInterfaceRegistry()
|
||||
codec := codec.NewProtoCodec(interfaceRegistry)
|
||||
|
||||
return EncodingConfig{
|
||||
InterfaceRegistry: interfaceRegistry,
|
||||
Codec: codec,
|
||||
TxConfig: tx.NewTxConfig(codec, tx.DefaultSignModes),
|
||||
Amino: cdc,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user