aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/components/fill_order.tsx4
-rw-r--r--packages/website/ts/schemas/order_schema.ts4
-rw-r--r--packages/website/ts/types.ts2
-rw-r--r--packages/website/ts/utils/utils.ts8
4 files changed, 9 insertions, 9 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx
index c0b16f251..88e39b1d3 100644
--- a/packages/website/ts/components/fill_order.tsx
+++ b/packages/website/ts/components/fill_order.tsx
@@ -422,7 +422,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
const parsedTakerFee = new BigNumber(parsedOrder.taker.feeAmount);
const zeroExOrder: ZeroExOrder = {
- exchangeContractAddress: parsedOrder.exchangeContract,
+ exchangeContractAddress: parsedOrder.exchangeContractAddress,
expirationUnixTimestampSec: expiration,
feeRecipient: parsedOrder.feeRecipient,
maker: parsedOrder.maker.address,
@@ -443,7 +443,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
orderJSONErrMsg = `This order was made on another Ethereum network
(id: ${parsedOrder.networkId}). Connect to this network to fill.`;
parsedOrder = undefined;
- } else if (exchangeContractAddr !== parsedOrder.exchangeContract) {
+ } else if (exchangeContractAddr !== parsedOrder.exchangeContractAddress) {
orderJSONErrMsg = 'This order was made using a deprecated 0x Exchange contract.';
parsedOrder = undefined;
} else if (orderHash !== signature.hash) {
diff --git a/packages/website/ts/schemas/order_schema.ts b/packages/website/ts/schemas/order_schema.ts
index 1d9e96fee..a7fbae411 100644
--- a/packages/website/ts/schemas/order_schema.ts
+++ b/packages/website/ts/schemas/order_schema.ts
@@ -7,7 +7,7 @@ export const orderSchema = {
signature: { $ref: '/SignatureData' },
expirationUnixTimestampSec: { type: 'string' },
feeRecipient: { type: 'string' },
- exchangeContract: { type: 'string' },
+ exchangeContractAddress: { type: 'string' },
networkId: { type: 'number' },
},
required: [
@@ -17,7 +17,7 @@ export const orderSchema = {
'signature',
'expirationUnixTimestampSec',
'feeRecipient',
- 'exchangeContract',
+ 'exchangeContractAddress',
'networkId',
],
type: 'object',
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts
index 4ac972783..b64d164a1 100644
--- a/packages/website/ts/types.ts
+++ b/packages/website/ts/types.ts
@@ -87,7 +87,7 @@ export interface SerializedOrder {
feeRecipient: string;
salt: string;
signature: SignatureData;
- exchangeContract: string;
+ exchangeContractAddress: string;
networkId: number;
}
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index 794df8dc7..db153d47a 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -60,9 +60,9 @@ export const utils = {
},
generateOrder(
networkId: number,
- exchangeContract: string,
+ exchangeContractAddress: string,
sideToAssetToken: SideToAssetToken,
- orderExpiryTimestamp: BigNumber,
+ expirationUnixTimestampSec: BigNumber,
orderTakerAddress: string,
orderMakerAddress: string,
makerFee: BigNumber,
@@ -97,11 +97,11 @@ export const utils = {
amount: sideToAssetToken[Side.Receive].amount.toString(),
feeAmount: takerFee.toString(),
},
- expirationUnixTimestampSec: orderExpiryTimestamp.toString(),
+ expirationUnixTimestampSec: expirationUnixTimestampSec.toString(),
feeRecipient,
salt: orderSalt.toString(),
signature: signatureData,
- exchangeContract,
+ exchangeContractAddress,
networkId,
};
return order;