aboutsummaryrefslogtreecommitdiffstats
path: root/test/0x.js.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-26 02:29:33 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-26 02:29:33 +0800
commit183e8a71389737dc1c535b3625c949307607b9b9 (patch)
treec55fb4d000b0a36460199354bcbdafb000b4a6d5 /test/0x.js.ts
parentf2f39d9eb2822b71aa7c5cf6f3b2ef006a83ad03 (diff)
downloaddexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar.gz
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar.bz2
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar.lz
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar.xz
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.tar.zst
dexon-sol-tools-183e8a71389737dc1c535b3625c949307607b9b9.zip
Address feedback
Diffstat (limited to 'test/0x.js.ts')
-rw-r--r--test/0x.js.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/0x.js.ts b/test/0x.js.ts
index 07c58f1a5..d5b2015fb 100644
--- a/test/0x.js.ts
+++ b/test/0x.js.ts
@@ -11,8 +11,9 @@ const expect = chai.expect;
describe('ZeroEx library', () => {
describe('#getOrderHash', () => {
+ const ORDER_HASH = '0x103a5e97dab5dbeb8f385636f86a7d1e458a7ccbe1bd194727f0b2f85ab116c7';
it('defaults takerAddress to NULL address', () => {
- const orderHash = ZeroEx.getOrderHash(
+ const orderHash = ZeroEx.getOrderHashHex(
constants.NULL_ADDRESS,
constants.NULL_ADDRESS,
'',
@@ -26,10 +27,10 @@ describe('ZeroEx library', () => {
new BigNumber(0),
new BigNumber(0),
);
- expect(orderHash).to.be.equal('0x103a5e97dab5dbeb8f385636f86a7d1e458a7ccbe1bd194727f0b2f85ab116c7');
+ expect(orderHash).to.be.equal(ORDER_HASH);
});
it('calculates the order hash', () => {
- const orderHash = ZeroEx.getOrderHash(
+ const orderHash = ZeroEx.getOrderHashHex(
constants.NULL_ADDRESS,
constants.NULL_ADDRESS,
constants.NULL_ADDRESS,
@@ -43,7 +44,7 @@ describe('ZeroEx library', () => {
new BigNumber(0),
new BigNumber(0),
);
- expect(orderHash).to.be.equal('0x103a5e97dab5dbeb8f385636f86a7d1e458a7ccbe1bd194727f0b2f85ab116c7');
+ expect(orderHash).to.be.equal(ORDER_HASH);
});
});
describe('#isValidSignature', () => {