Merge pull request #1514 from 0xProject/bug/exchange-wrapper-matchOrders
Remove optimization from matchOrdersAsync in Exchange wrapper
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
{
|
||||
"note": "Renamed OrderStatus enum members to PascalCase to conform with tslint enum-naming rule",
|
||||
"pr": 1474
|
||||
},
|
||||
{
|
||||
"note": "Remove Exchange `matchOrdersAsync` optimization",
|
||||
"pr": 1514
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -743,10 +743,6 @@ export class ExchangeWrapper extends ContractWrapper {
|
||||
rightSignedOrder.takerAssetData !== leftSignedOrder.makerAssetData
|
||||
) {
|
||||
throw new Error(ExchangeWrapperError.AssetDataMismatch);
|
||||
} else {
|
||||
// Smart contracts assigns the asset data from the left order to the right one so we can save gas on reducing the size of call data
|
||||
rightSignedOrder.makerAssetData = '0x';
|
||||
rightSignedOrder.takerAssetData = '0x';
|
||||
}
|
||||
const exchangeInstance = await this._getExchangeContractAsync();
|
||||
if (orderTransactionOpts.shouldValidate) {
|
||||
|
||||
Reference in New Issue
Block a user