diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-01 21:10:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-01 21:10:22 +0800 |
commit | 88316455b74d2ecde1da55bf2bb36b6c9b46bcb1 (patch) | |
tree | bd00e891e96aad825084c0f3ba3b5d31e5a4cfd9 /src/0x.js.ts | |
parent | 085e4fb8962d2d79d60270967aef0f55acb788bf (diff) | |
download | dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar.gz dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar.bz2 dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar.lz dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar.xz dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.tar.zst dexon-0x-contracts-88316455b74d2ecde1da55bf2bb36b6c9b46bcb1.zip |
Make taker required on Order object and expect NULL_ADDRESS from 0x.js
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r-- | src/0x.js.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts index bf56d5f8d..1a46fe9a5 100644 --- a/src/0x.js.ts +++ b/src/0x.js.ts @@ -26,6 +26,8 @@ bigNumberConfigs.configure(); const MAX_DIGITS_IN_UNSIGNED_256_INT = 78; export class ZeroEx { + public static NULL_ADDRESS = constants.NULL_ADDRESS; + public exchange: ExchangeWrapper; public tokenRegistry: TokenRegistryWrapper; public token: TokenWrapper; @@ -37,7 +39,6 @@ export class ZeroEx { assert.doesConformToSchema('order', SchemaValidator.convertToJSONSchemaCompatibleObject(order as object), orderSchema); - const taker = _.isEmpty(order.taker) ? constants.NULL_ADDRESS : order.taker ; const orderParts = [ {value: exchangeContractAddr, type: SolidityTypes.address}, |