From 8af7fb280e4b1cc39bbc4fed742d8d37bc0dbece Mon Sep 17 00:00:00 2001 From: MSalopek Date: Fri, 29 Mar 2024 11:45:59 +0100 Subject: [PATCH] fix!: assure historic TxExtensionOptions encoding validity (#3032) (cherry picked from commit e00f2efa98bc0803d1040c7271f18d94e13944dc) --- x/metaprotocols/types/codec.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x/metaprotocols/types/codec.go b/x/metaprotocols/types/codec.go index 9cf58026bd..da9559273f 100644 --- a/x/metaprotocols/types/codec.go +++ b/x/metaprotocols/types/codec.go @@ -3,6 +3,7 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec/types" tx "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/cosmos/cosmos-sdk/x/authz" ) // RegisterInterfaces adds the x/metaprotocols module's interfaces to the provided InterfaceRegistry @@ -11,5 +12,8 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations( (*tx.TxExtensionOptionI)(nil), &ExtensionData{}, + // needs to be registered to allow parsing of historic data stored in TxExtensionOptions + // the app does not interact with this message in any way but it performs an unmarshal which must not fail + &authz.MsgRevoke{}, ) }