Skip to content

Commit

Permalink
fix: TestConfigOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Feb 29, 2024
1 parent b3a9276 commit 7b757c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/auth/tx/config_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tx_test

import (
"cosmossdk.io/x/tx/signing"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7b757c1

Please sign in to comment.