From bcfec85b6c1cd88b4ef507f7ed582b1e7308fd03 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 6 May 2025 16:12:02 +0300 Subject: [PATCH] added test with valid registered recepient that has white spaces --- handlers/application/menuhandler_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/handlers/application/menuhandler_test.go b/handlers/application/menuhandler_test.go index 3821a0d..d07e0cc 100644 --- a/handlers/application/menuhandler_test.go +++ b/handlers/application/menuhandler_test.go @@ -1761,7 +1761,6 @@ func TestValidateRecipient(t *testing.T) { expectedRecipient: []byte("0xd4c288865Ce0985a481Eef3be02443dF5E2e4Ea9"), expectedResult: resource.Result{}, }, - { name: "Test for checksummed address", input: []byte("0x5523058cdffe5f3c1eadadd5015e55c6e00fb439"), @@ -1769,6 +1768,13 @@ func TestValidateRecipient(t *testing.T) { expectedRecipient: []byte("0x5523058cdFfe5F3c1EaDADD5015E55C6E00fb439"), expectedResult: resource.Result{}, }, + { + name: "Test with valid registered recepient that has white spaces", + input: []byte("0711 22 33 44"), + expectError: false, + expectedRecipient: []byte(publicKey), + expectedResult: resource.Result{}, + }, } // store a public key for the valid recipient