Skip to content

Commit

Permalink
do not do validate on init
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jul 31, 2024
1 parent 313f9eb commit a042f81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/tx/signing/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ func TestDefineCustomGetSigners(t *testing.T) {
options.DefineCustomGetSigners(proto.MessageName(simpleSigner), func(msg proto.Message) ([][]byte, error) {
return [][]byte{[]byte("qux")}, nil
})
_, err = NewContext(options)
require.ErrorContains(t, err, "a custom signer function as been defined for message SimpleSigner")
context, err = NewContext(options)
require.NoError(t, err)
require.ErrorContains(t, context.Validate(), "a custom signer function as been defined for message SimpleSigner")
}

type dummyAddressCodec struct{}
Expand Down

0 comments on commit a042f81

Please sign in to comment.