diff options
author | Jacob Evans <jacob@dekz.net> | 2018-05-24 08:27:49 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-25 07:00:22 +0800 |
commit | 3cc8af819c9f62f42e7cb3d03f896b35cfc10d05 (patch) | |
tree | a03f912c39990d7925390d02cdef73b8ef1b3ea9 /packages/contracts/test | |
parent | fcf4a958c3daa4dd7911de48001a8e235c9eb5ac (diff) | |
download | dexon-0x-contracts-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.gz dexon-0x-contracts-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.zst dexon-0x-contracts-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.zip |
Use domain separator for exchange address
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/exchange/libs.ts | 10 |
1 files changed, 8 insertions, 2 deletions
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); }); |