diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-26 01:33:13 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-26 01:33:13 +0800 |
commit | da4b70fcae1da2c35905a30b79707b3f27b9fa3a (patch) | |
tree | 65dbdb8f75c8e93cd788149610522f5bf5ada643 /packages/contracts/test/exchange/libs.ts | |
parent | ad4c2b95e4722e6d227c26f436bedf7b06f5356a (diff) | |
parent | 05b35c0fdcbca7980d4195e96ec791c1c2d13398 (diff) | |
download | dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.gz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.bz2 dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.lz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.xz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.zst dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.zip |
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/web3-wrapper/unexport-marshaller
Diffstat (limited to 'packages/contracts/test/exchange/libs.ts')
-rw-r--r-- | packages/contracts/test/exchange/libs.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts index 2e95fa96c..51794d8a3 100644 --- a/packages/contracts/test/exchange/libs.ts +++ b/packages/contracts/test/exchange/libs.ts @@ -4,6 +4,7 @@ import { SignedOrder } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; +import { TestConstantsContract } from '../../generated_contract_wrappers/test_constants'; import { TestLibsContract } from '../../generated_contract_wrappers/test_libs'; import { addressUtils } from '../utils/address_utils'; import { artifacts } from '../utils/artifacts'; @@ -21,6 +22,7 @@ describe('Exchange libs', () => { let signedOrder: SignedOrder; let orderFactory: OrderFactory; let libs: TestLibsContract; + let testConstants: TestConstantsContract; before(async () => { await blockchainLifecycle.startAsync(); @@ -32,6 +34,11 @@ describe('Exchange libs', () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); const makerAddress = accounts[0]; libs = await TestLibsContract.deployFrom0xArtifactAsync(artifacts.TestLibs, provider, txDefaults); + testConstants = await TestConstantsContract.deployFrom0xArtifactAsync( + artifacts.TestConstants, + provider, + txDefaults, + ); const defaultOrderParams = { ...constants.STATIC_ORDER_PARAMS, @@ -52,6 +59,15 @@ describe('Exchange libs', () => { await blockchainLifecycle.revertAsync(); }); + describe('LibConstants', () => { + describe('ZRX_ASSET_DATA', () => { + it('should have the correct ZRX_ASSET_DATA', async () => { + const isValid = await testConstants.assertValidZrxAssetData.callAsync(); + expect(isValid).to.be.equal(true); + }); + }); + }); + describe('LibOrder', () => { describe('getOrderSchema', () => { it('should output the correct order schema hash', async () => { |