From 7b757c156f3a6012aa2f431cdb4e17e19f56c886 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Thu, 29 Feb 2024 12:51:16 +0100 Subject: [PATCH] fix: TestConfigOptions --- x/auth/tx/config_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x/auth/tx/config_test.go b/x/auth/tx/config_test.go index fc94f5b44863..47809828dfbd 100644 --- a/x/auth/tx/config_test.go +++ b/x/auth/tx/config_test.go @@ -1,6 +1,7 @@ package tx_test import ( + "cosmossdk.io/x/tx/signing" "testing" "github.com/stretchr/testify/require" @@ -30,7 +31,10 @@ func TestGenerator(t *testing.T) { func TestConfigOptions(t *testing.T) { interfaceRegistry := types.NewInterfaceRegistry() protoCodec := codec.NewProtoCodec(interfaceRegistry) - configOptions := tx.ConfigOptions{} + configOptions := tx.ConfigOptions{SigningOptions: &signing.Options{ + AddressCodec: protoCodec.InterfaceRegistry().SigningContext().AddressCodec(), + ValidatorAddressCodec: protoCodec.InterfaceRegistry().SigningContext().ValidatorAddressCodec(), + }} txConfig, err := tx.NewTxConfigWithOptions(protoCodec, configOptions) require.NoError(t, err) require.NotNil(t, txConfig)