From a042f819fd8b759dc7180762962b87607c8b4831 Mon Sep 17 00:00:00 2001 From: Facundo Date: Wed, 31 Jul 2024 16:16:24 +0200 Subject: [PATCH] do not do validate on init --- x/tx/signing/context_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/tx/signing/context_test.go b/x/tx/signing/context_test.go index 9367fc561742..88f0bf4aadf9 100644 --- a/x/tx/signing/context_test.go +++ b/x/tx/signing/context_test.go @@ -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{}