aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/0x.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-20 20:06:21 +0800
committerGitHub <noreply@github.com>2017-12-20 20:06:21 +0800
commitb603197ae837dca86d712760f9b18f626628096a (patch)
treeae422c9a387c656320f9b812f64b5660d536d0a0 /packages/0x.js/src/0x.ts
parent14c994ce1472e2fbd56efb73387505edd2a3ebc1 (diff)
parent3c66f18a46ae297181bdc82023a8e8bd895eebe1 (diff)
downloaddexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.gz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.bz2
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.lz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.xz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.zst
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.zip
Merge pull request #278 from 0xProject/fix/error-taker-format
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.ts2
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);