From 46e4b28dad6b8b6f662d5c6486451e78a4dde268 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Wed, 15 Mar 2023 17:40:39 -0400 Subject: [PATCH] refactor(x/tx)!: switch to interface in GetSignersContextOptions (#15413) --- x/tx/signing/get_signers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/tx/signing/get_signers.go b/x/tx/signing/get_signers.go index a494ddcd82..8ad36ce8cc 100644 --- a/x/tx/signing/get_signers.go +++ b/x/tx/signing/get_signers.go @@ -5,6 +5,7 @@ import ( msgv1 "cosmossdk.io/api/cosmos/msg/v1" "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoregistry" ) @@ -13,7 +14,7 @@ import ( // message where signers are specified by the cosmos.msg.v1.signer protobuf // option. type GetSignersContext struct { - protoFiles *protoregistry.Files + protoFiles protodesc.Resolver getSignersFuncs map[protoreflect.FullName]getSignersFunc } @@ -21,7 +22,7 @@ type GetSignersContext struct { type GetSignersOptions struct { // ProtoFiles are the protobuf files to use for resolving message descriptors. // If it is nil, the global protobuf registry will be used. - ProtoFiles *protoregistry.Files + ProtoFiles protodesc.Resolver } // NewGetSignersContext creates a new GetSignersContext using the provided options.