fix(x/auth): properly populate tx config options and deprecate ProtoCodecMarshaler (backport #17946) (#17952)

This commit is contained in:
mergify[bot]
2023-10-04 23:49:07 +02:00
committed by GitHub
parent 31e603ac8d
commit 3da9f9c9ec
10 changed files with 31 additions and 23 deletions
+2 -5
View File
@@ -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 {