diff options
author | Fabio Berger <me@fabioberger.com> | 2019-02-07 09:03:43 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2019-02-07 09:03:43 +0800 |
commit | b883b183a6c6011e306fee4338eb4d0da698911a (patch) | |
tree | 873cca00f5266ab4c586d645126cc26d06349319 /packages/order-utils/test | |
parent | ac58ace8cfd02e0d6f39fc833eb515fbd8340482 (diff) | |
download | dexon-0x-contracts-b883b183a6c6011e306fee4338eb4d0da698911a.tar.gz dexon-0x-contracts-b883b183a6c6011e306fee4338eb4d0da698911a.tar.zst dexon-0x-contracts-b883b183a6c6011e306fee4338eb4d0da698911a.zip |
Stop exporting EIP712 schemas
Diffstat (limited to 'packages/order-utils/test')
-rw-r--r-- | packages/order-utils/test/eip712_utils_test.ts | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/packages/order-utils/test/eip712_utils_test.ts b/packages/order-utils/test/eip712_utils_test.ts index 4208e9beb..c97bed144 100644 --- a/packages/order-utils/test/eip712_utils_test.ts +++ b/packages/order-utils/test/eip712_utils_test.ts @@ -3,12 +3,7 @@ import * as chai from 'chai'; import 'mocha'; import { constants } from '../src/constants'; -import { - eip712Utils, - EXCHANGE_DOMAIN_NAME, - EXCHANGE_DOMAIN_VERSION, - EXCHANGE_ZEROEX_TRANSACTION_SCHEMA, -} from '../src/eip712_utils'; +import { eip712Utils } from '../src/eip712_utils'; import { chaiSetup } from './utils/chai_setup'; @@ -28,8 +23,8 @@ describe('EIP712 Utils', () => { expect(typedData.domain).to.not.be.undefined(); expect(typedData.types.EIP712Domain).to.not.be.undefined(); const domainObject = typedData.domain; - expect(domainObject.name).to.eq(EXCHANGE_DOMAIN_NAME); - expect(domainObject.version).to.eq(EXCHANGE_DOMAIN_VERSION); + expect(domainObject.name).to.eq(constants.EXCHANGE_DOMAIN_NAME); + expect(domainObject.version).to.eq(constants.EXCHANGE_DOMAIN_VERSION); expect(domainObject.verifyingContract).to.eq(constants.NULL_ADDRESS); expect(typedData.primaryType).to.eq(primaryType); }); @@ -60,11 +55,11 @@ describe('EIP712 Utils', () => { signerAddress: constants.NULL_ADDRESS, verifyingContractAddress: constants.NULL_ADDRESS, }); - expect(typedData.primaryType).to.eq(EXCHANGE_ZEROEX_TRANSACTION_SCHEMA.name); + expect(typedData.primaryType).to.eq(constants.EXCHANGE_ZEROEX_TRANSACTION_SCHEMA.name); expect(typedData.types.EIP712Domain).to.not.be.undefined(); const domainObject = typedData.domain; - expect(domainObject.name).to.eq(EXCHANGE_DOMAIN_NAME); - expect(domainObject.version).to.eq(EXCHANGE_DOMAIN_VERSION); + expect(domainObject.name).to.eq(constants.EXCHANGE_DOMAIN_NAME); + expect(domainObject.version).to.eq(constants.EXCHANGE_DOMAIN_VERSION); expect(domainObject.verifyingContract).to.eq(constants.NULL_ADDRESS); }); }); |