diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 23:22:57 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 23:22:57 +0800 |
commit | 75f637bd756fd7d4480792ead7bd86dd8326e622 (patch) | |
tree | 000fd6a09f2fcaedd640a8580ba8f8c90185958e /packages/0x.js/src/0x.ts | |
parent | 1316a2dd2a8971771f750d8a7f457212daad520b (diff) | |
download | dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.gz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.bz2 dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.lz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.xz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.zst dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.zip |
Throw a better error message when taker is null|undefined or anything but not a string
Diffstat (limited to 'packages/0x.js/src/0x.ts')
-rw-r--r-- | packages/0x.js/src/0x.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index 41fefb993..e4965f9a2 100644 --- a/packages/0x.js/src/0x.ts +++ b/packages/0x.js/src/0x.ts @@ -25,6 +25,7 @@ import { import {AbiDecoder} from './utils/abi_decoder'; import {assert} from './utils/assert'; import {constants} from './utils/constants'; +import {decorators} from './utils/decorators'; import {signatureUtils} from './utils/signature_utils'; import {utils} from './utils/utils'; @@ -155,6 +156,7 @@ export class ZeroEx { * @param order An object that conforms to the Order or SignedOrder interface definitions. * @return The resulting orderHash from hashing the supplied order. */ + @decorators.syncZeroExErrorHandler public static getOrderHashHex(order: Order|SignedOrder): string { assert.doesConformToSchema('order', order, schemas.orderSchema); const orderHashHex = utils.getOrderHashHex(order); |