diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-08 03:38:30 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-08 03:38:30 +0800 |
commit | e6f2c7a382e2e7e940f430f350240cb2f703bdcd (patch) | |
tree | 20fafeb4737dcf79fd66296f4bbcbcef1bbaabdb /packages/website/ts/components/fill_order.tsx | |
parent | 69f5f5e94627458f4eb41f4150cfa3d140658d09 (diff) | |
download | dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar.gz dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar.bz2 dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar.lz dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar.xz dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.tar.zst dexon-sol-tools-e6f2c7a382e2e7e940f430f350240cb2f703bdcd.zip |
Remove networkId from orderJSON
Diffstat (limited to 'packages/website/ts/components/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index ad3d6bf74..d2c36ff0c 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -109,7 +109,6 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { <FillOrderJSON blockchain={this.props.blockchain} tokenByAddress={this.props.tokenByAddress} - networkId={this.props.networkId} orderJSON={this.state.orderJSON} onFillOrderJSONChanged={this._onFillOrderJSONChanged.bind(this)} /> @@ -136,7 +135,6 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { <FillOrderJSON blockchain={this.props.blockchain} tokenByAddress={this.props.tokenByAddress} - networkId={this.props.networkId} orderJSON={this.state.orderJSON} onFillOrderJSONChanged={this._onFillOrderJSONChanged.bind(this)} /> @@ -444,12 +442,8 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { const signature = parsedOrder.signedOrder.ecSignature; const isValidSignature = ZeroEx.isValidSignature(signature.hash, signature, parsedOrder.signedOrder.maker); - if (this.props.networkId !== parsedOrder.metadata.networkId) { - orderJSONErrMsg = `This order was made on another Ethereum network - (id: ${parsedOrder.metadata.networkId}). Connect to this network to fill.`; - parsedOrder = undefined; - } else if (exchangeContractAddr !== parsedOrder.signedOrder.exchangeContractAddress) { - orderJSONErrMsg = 'This order was made using a deprecated 0x Exchange contract.'; + if (exchangeContractAddr !== parsedOrder.signedOrder.exchangeContractAddress) { + orderJSONErrMsg = 'This order was made on another network or using a deprecated Exchange contract'; parsedOrder = undefined; } else if (orderHash !== signature.hash) { orderJSONErrMsg = 'Order hash does not match supplied plaintext values'; |