diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-11 20:25:47 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-11 20:25:47 +0800 |
commit | 295a8c760a6d5b567a12d6a2d83ae73021ea343c (patch) | |
tree | faf6810a6b5b810869e36c20641fd4fe25e03ddb /packages/contracts/test/exchange/libs.ts | |
parent | 9b147f14955c5f6a0b38e03ae30ac13b1be183d1 (diff) | |
parent | 1cfcc82ea9869e14c1a1b78e1376c89fdbeb91f4 (diff) | |
download | dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.gz dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.bz2 dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.lz dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.xz dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.zst dexon-0x-contracts-295a8c760a6d5b567a12d6a2d83ae73021ea343c.zip |
merge dev-section-redesign
Diffstat (limited to 'packages/contracts/test/exchange/libs.ts')
-rw-r--r-- | packages/contracts/test/exchange/libs.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts index 37234489e..049b7f37a 100644 --- a/packages/contracts/test/exchange/libs.ts +++ b/packages/contracts/test/exchange/libs.ts @@ -1,5 +1,5 @@ import { BlockchainLifecycle } from '@0xproject/dev-utils'; -import { assetDataUtils, eip712Utils, orderHashUtils } from '@0xproject/order-utils'; +import { assetDataUtils, orderHashUtils } from '@0xproject/order-utils'; import { SignedOrder } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; @@ -126,22 +126,6 @@ describe('Exchange libs', () => { }); describe('LibOrder', () => { - describe('getOrderSchema', () => { - it('should output the correct order schema hash', async () => { - const orderSchema = await libs.getOrderSchemaHash.callAsync(); - const schemaHashBuffer = orderHashUtils._getOrderSchemaBuffer(); - const schemaHashHex = `0x${schemaHashBuffer.toString('hex')}`; - expect(schemaHashHex).to.be.equal(orderSchema); - }); - }); - describe('getDomainSeparatorSchema', () => { - it('should output the correct domain separator schema hash', async () => { - const domainSeparatorSchema = await libs.getDomainSeparatorSchemaHash.callAsync(); - const domainSchemaBuffer = eip712Utils._getDomainSeparatorSchemaBuffer(); - const schemaHashHex = `0x${domainSchemaBuffer.toString('hex')}`; - expect(schemaHashHex).to.be.equal(domainSeparatorSchema); - }); - }); describe('getOrderHash', () => { it('should output the correct orderHash', async () => { signedOrder = await orderFactory.newSignedOrderAsync(); |