aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-06-22 21:00:22 +0800
committerJacob Evans <jacob@dekz.net>2018-06-22 21:00:22 +0800
commitb2a4b7eb888131608d2526d806bc0461c31e8aef (patch)
tree5bec4812a33c08fc6ac2eaf93d8aa0adaded29cd /packages/order-utils
parent798a647b71c91df5c3d97bff1f2d5a07f2204c9c (diff)
downloaddexon-0x-contracts-b2a4b7eb888131608d2526d806bc0461c31e8aef.tar.gz
dexon-0x-contracts-b2a4b7eb888131608d2526d806bc0461c31e8aef.tar.zst
dexon-0x-contracts-b2a4b7eb888131608d2526d806bc0461c31e8aef.zip
Fix known order hash value test
Diffstat (limited to 'packages/order-utils')
-rw-r--r--packages/order-utils/test/order_hash_test.ts12
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/order-utils/test/order_hash_test.ts b/packages/order-utils/test/order_hash_test.ts
index 28bfcbafc..0a6be83d0 100644
--- a/packages/order-utils/test/order_hash_test.ts
+++ b/packages/order-utils/test/order_hash_test.ts
@@ -12,8 +12,8 @@ const expect = chai.expect;
describe('Order hashing', () => {
describe('#getOrderHashHex', () => {
- const expectedOrderHash = '0x367ad7730eb8b5feab8a9c9f47c6fcba77a2d4df125ee6a59cc26ac955710f7e';
- const fakeExchangeContractAddress = '0xb69e673309512a9d726f87304c6984054f87a93b';
+ const expectedOrderHash = '0x434c6b41e2fb6dfcfe1b45c4492fb03700798e9c1afc6f801ba6203f948c1fa7';
+ const fakeExchangeContractAddress = '0x1dc4c1cefef38a777b15aa20260a54e584b16c48';
const order: Order = {
makerAddress: constants.NULL_ADDRESS,
takerAddress: constants.NULL_ADDRESS,
@@ -29,15 +29,11 @@ describe('Order hashing', () => {
takerAssetAmount: new BigNumber(0),
expirationTimeSeconds: new BigNumber(0),
};
- // HACK: Temporarily disable these tests until @dekz has time to fix.
- // This allows us to get all tests running on CI immediately
- it.skip('calculates the order hash', async () => {
+ it('calculates the order hash', async () => {
const orderHash = orderHashUtils.getOrderHashHex(order);
expect(orderHash).to.be.equal(expectedOrderHash);
});
- // HACK: Temporarily disable these tests until @dekz has time to fix.
- // This allows us to get all tests running on CI immediately
- it.skip('throws a readable error message if taker format is invalid', async () => {
+ it('throws a readable error message if taker format is invalid', async () => {
const orderWithInvalidtakerFormat = {
...order,
takerAddress: (null as any) as string,