fix(x/auth): properly populate tx config options and deprecate ProtoCodecMarshaler (backport #17946) (#17952)
This commit is contained in:
@@ -23,9 +23,9 @@ import (
|
||||
|
||||
// ProtoCodecMarshaler defines an interface for codecs that utilize Protobuf for both
|
||||
// binary and JSON encoding.
|
||||
// Deprecated: Use Codec instead.
|
||||
type ProtoCodecMarshaler interface {
|
||||
Codec
|
||||
InterfaceRegistry() types.InterfaceRegistry
|
||||
}
|
||||
|
||||
// ProtoCodec defines a codec that utilizes Protobuf for both binary and JSON
|
||||
@@ -34,10 +34,7 @@ type ProtoCodec struct {
|
||||
interfaceRegistry types.InterfaceRegistry
|
||||
}
|
||||
|
||||
var (
|
||||
_ Codec = &ProtoCodec{}
|
||||
_ ProtoCodecMarshaler = &ProtoCodec{}
|
||||
)
|
||||
var _ Codec = (*ProtoCodec)(nil)
|
||||
|
||||
// NewProtoCodec returns a reference to a new ProtoCodec
|
||||
func NewProtoCodec(interfaceRegistry types.InterfaceRegistry) *ProtoCodec {
|
||||
|
||||
Reference in New Issue
Block a user