From e106d4e7d3761b81a418b0ef32ce8af2d455cdd4 Mon Sep 17 00:00:00 2001 From: gruve-p Date: Fri, 12 Feb 2021 11:30:18 +0100 Subject: [PATCH] Add invalid grs segwit addresses --- test/wallet_address_validator.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/wallet_address_validator.js b/test/wallet_address_validator.js index 9644520a..ef2313bd 100644 --- a/test/wallet_address_validator.js +++ b/test/wallet_address_validator.js @@ -125,8 +125,12 @@ describe('WAValidator.validate()', function () { valid('2MxKEf2su6FGAUfCEAHreGFQvEYrfZDahUf', 'groestlcoin', 'testnet'); // segwit addresses - valid('grs1q49qls5kklryt95g5xx4p6msycpgjp8ramfc9jq', 'groestlcoin'); - valid('tgrs1qgjd3qhncsxdyh5gt7hz4k6zzvfguslwxwgv23j', 'groestlcoin'); + valid('grs1q49qls5kklryt95g5xx4p6msycpgjp8ramfc9jq', 'grs'); + valid('grs1qnxt8adg4qk3ljl0qhvp4m0nt56w6ma77vwr2jq', 'grs'); + valid('tgrs1qw4z3xrtgx4f6w7akwpp2xa0gupmkv4yauemmm9', 'grs', 'testnet'); + + invalid("grs1q49qls5kklryt95g5xq4p6msycpgjp8ramfc9jq", 'grs'), + invalid("tgrs1qqjd3qhncsxdyh5gt7hz4k6zzvfguslwxwgv23j", 'grs') }); it('should return true for correct peercoin addresses', function () { @@ -1508,5 +1512,3 @@ describe('invalid results', function () { }); - -