diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-25 17:00:20 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-25 17:00:20 +0800 |
commit | d23dbf53fd3689613f28d576d03ccfdce94b6646 (patch) | |
tree | f545cf9ceffcb23a6bc2e3586382bb26eaad48d4 /test/0x.js.ts | |
parent | 755c980a56385f2fe4198b5d4a312d7af0eab02c (diff) | |
download | dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.gz dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.bz2 dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.lz dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.xz dexon-0x-contracts-d23dbf53fd3689613f28d576d03ccfdce94b6646.tar.zst dexon-0x-contracts-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
Diffstat (limited to 'test/0x.js.ts')
-rw-r--r-- | test/0x.js.ts | 3 |
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', () => { |