Skip to content

Commit

Permalink
Add invalid grs segwit addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Feb 12, 2021
1 parent d5aa586 commit e106d4e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/wallet_address_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -1508,5 +1512,3 @@ describe('invalid results', function () {


});


0 comments on commit e106d4e

Please sign in to comment.