@ellipticltd/aml-utils 0.15.8-SCR-1266 → 0.15.8-SCR-1266.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,7 +218,7 @@ export namespace fantom {
|
|
|
218
218
|
function isTxHash(str: any): any;
|
|
219
219
|
function isTxHash(str: any): any;
|
|
220
220
|
}
|
|
221
|
-
export namespace
|
|
221
|
+
export namespace ethereumClassic {
|
|
222
222
|
function isAddress(str: any): any;
|
|
223
223
|
function isAddress(str: any): any;
|
|
224
224
|
function isTxHash(str: any): any;
|
|
@@ -442,12 +442,12 @@ describe('Validations', () => {
|
|
|
442
442
|
});
|
|
443
443
|
describe('ETC', () => {
|
|
444
444
|
describe('isAddress', () => {
|
|
445
|
-
it('should return true if the address evaluates as a web3 address', () => validations_1.default.
|
|
446
|
-
it('should return false if the address does not evaluate to a web3 address', () => validations_1.default.
|
|
445
|
+
it('should return true if the address evaluates as a web3 address', () => validations_1.default.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d26').should.be.true);
|
|
446
|
+
it('should return false if the address does not evaluate to a web3 address', () => validations_1.default.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d2G').should.be.false);
|
|
447
447
|
});
|
|
448
448
|
describe('isTxHash', () => {
|
|
449
|
-
it('should correctly validate a valid ETC hash', () => validations_1.default.
|
|
450
|
-
it('should correctly validate an incorrect ETC hash', () => validations_1.default.
|
|
449
|
+
it('should correctly validate a valid ETC hash', () => validations_1.default.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de').should.be.true);
|
|
450
|
+
it('should correctly validate an incorrect ETC hash', () => validations_1.default.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de!').should.be.false);
|
|
451
451
|
});
|
|
452
452
|
});
|
|
453
453
|
});
|
|
@@ -577,14 +577,14 @@ describe('Validations', () => {
|
|
|
577
577
|
|
|
578
578
|
describe('ETC', () => {
|
|
579
579
|
describe('isAddress', () => {
|
|
580
|
-
it('should return true if the address evaluates as a web3 address', () => validations.
|
|
581
|
-
it('should return false if the address does not evaluate to a web3 address', () => validations.
|
|
580
|
+
it('should return true if the address evaluates as a web3 address', () => validations.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d26').should.be.true);
|
|
581
|
+
it('should return false if the address does not evaluate to a web3 address', () => validations.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d2G').should.be.false);
|
|
582
582
|
});
|
|
583
583
|
|
|
584
584
|
describe('isTxHash', () => {
|
|
585
|
-
it('should correctly validate a valid ETC hash', () => validations.
|
|
585
|
+
it('should correctly validate a valid ETC hash', () => validations.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de').should.be.true);
|
|
586
586
|
|
|
587
|
-
it('should correctly validate an incorrect ETC hash', () => validations.
|
|
587
|
+
it('should correctly validate an incorrect ETC hash', () => validations.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de!').should.be.false);
|
|
588
588
|
});
|
|
589
589
|
});
|
|
590
590
|
});
|