From 3cc8af819c9f62f42e7cb3d03f896b35cfc10d05 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Wed, 23 May 2018 17:27:49 -0700 Subject: Use domain separator for exchange address --- packages/contracts/test/exchange/libs.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'packages/contracts/test/exchange/libs.ts') diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts index e48e7cc33..ad971e08a 100644 --- a/packages/contracts/test/exchange/libs.ts +++ b/packages/contracts/test/exchange/libs.ts @@ -57,13 +57,19 @@ describe('Exchange libs', () => { describe('LibOrder', () => { describe('getOrderSchema', () => { - it('should output the correct orderHash', async () => { + it('should output the correct order schema hash', async () => { const orderSchema = await libs.getOrderSchemaHash.callAsync(); expect(orderUtils.getOrderSchemaHex()).to.be.equal(orderSchema); }); }); + describe('getDomainSeparatorSchema', () => { + it('should output the correct domain separator schema hash', async () => { + const domainSeparatorSchema = await libs.getDomainSeparatorSchemaHash.callAsync(); + expect(orderUtils.getDomainSeparatorSchemaHex()).to.be.equal(domainSeparatorSchema); + }); + }); describe('getOrderHash', () => { - it('should output the correct orderHash', async () => { + it('should output the correct order hash', async () => { const orderHashHex = await libs.publicGetOrderHash.callAsync(signedOrder); expect(orderUtils.getOrderHashHex(signedOrder)).to.be.equal(orderHashHex); }); -- cgit v1.2.3