aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-08 04:53:14 +0800
committerFabio Berger <me@fabioberger.com>2017-12-08 04:53:14 +0800
commitf1ecdcf6029debbd2183511080b302a4fccc6703 (patch)
treecd3870de57bc5af02391c9ccf412afa4bcf25b64
parent1eaefac12b4911a0a54a7b822be61a9c35d1452e (diff)
downloaddexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.gz
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.bz2
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.lz
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.xz
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.tar.zst
dexon-sol-tools-f1ecdcf6029debbd2183511080b302a4fccc6703.zip
Make sure we don't pass empty maker into getOrderHashHex
-rw-r--r--packages/website/ts/components/inputs/hash_input.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/hash_input.tsx b/packages/website/ts/components/inputs/hash_input.tsx
index 7fadc3c15..25e7b5009 100644
--- a/packages/website/ts/components/inputs/hash_input.tsx
+++ b/packages/website/ts/components/inputs/hash_input.tsx
@@ -1,4 +1,5 @@
import {Order, ZeroEx} from '0x.js';
+import * as _ from 'lodash';
import * as React from 'react';
import ReactTooltip = require('react-tooltip');
import {Blockchain} from 'ts/blockchain';
@@ -49,7 +50,7 @@ export class HashInput extends React.Component<HashInputProps, HashInputState> {
exchangeContractAddress,
expirationUnixTimestampSec: hashData.orderExpiryTimestamp,
feeRecipient: hashData.feeRecipientAddress,
- maker: hashData.orderMakerAddress,
+ maker: _.isEmpty(hashData.orderMakerAddress) ? constants.NULL_ADDRESS : hashData.orderMakerAddress,
makerFee: hashData.makerFee,
makerTokenAddress: hashData.depositTokenContractAddr,
makerTokenAmount: hashData.depositAmount,