aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-25 17:00:20 +0800
committerFabio Berger <me@fabioberger.com>2017-05-25 17:00:20 +0800
commitd23dbf53fd3689613f28d576d03ccfdce94b6646 (patch)
treef545cf9ceffcb23a6bc2e3586382bb26eaad48d4
parent755c980a56385f2fe4198b5d4a312d7af0eab02c (diff)
downloaddexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.gz
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.bz2
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.lz
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.xz
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.zst
dexon-sol-tools-d23dbf53fd3689613f28d576d03ccfdce94b6646.zip
Fix test that was passing an invalid address (now caught by our assertions), to instead pass a valid but unrelated address as the test name suggests
-rw-r--r--test/0x.js.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/0x.js.ts b/test/0x.js.ts
index d59df8894..71126c7da 100644
--- a/test/0x.js.ts
+++ b/test/0x.js.ts
@@ -59,7 +59,8 @@ describe('ZeroEx library', () => {
expect(isValid).to.be.false;
});
it('should return false if the address doesn\'t pertain to the signature & data', () => {
- const isValid = ZeroEx.isValidSignature(data, signature, '0xIamWrong');
+ const validUnrelatedAddress = '0x8b0292B11a196601eD2ce54B665CaFEca0347D42';
+ const isValid = ZeroEx.isValidSignature(data, signature, validUnrelatedAddress);
expect(isValid).to.be.false;
});
it('should return false if the signature doesn\'t pertain to the data & address', () => {