From 3111fd696803e3ca13fc9af8abf7c357386675e4 Mon Sep 17 00:00:00 2001 From: Kevin Pita Date: Mon, 4 May 2026 12:49:34 +0200 Subject: [PATCH] fix: handle interface registry creation errors --- app/encoding.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/encoding.go b/app/encoding.go index d9c55d2..1638f84 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -1,6 +1,8 @@ package app import ( + "fmt" + "cosmossdk.io/x/tx/signing" "github.com/cosmos/cosmos-sdk/codec/address" legacytypes "github.com/xrplevm/node/v10/types/legacy/ethermint/types" @@ -39,10 +41,13 @@ func MakeEncodingConfig(evmChainID uint64) sdktestutil.TestEncodingConfig { }, } - interfaceRegistry, _ := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ + interfaceRegistry, err := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ ProtoFiles: proto.HybridResolver, SigningOptions: signingOptions, }) + if err != nil { + panic(fmt.Errorf("failed to create interface registry: %w", err)) + } interfaceRegistry.RegisterImplementations((*sdk.Msg)(nil), &poalegacytypes.MsgAddValidator{},