Fix tests

This commit is contained in:
Amir Bandeali
2019-09-03 19:03:27 -07:00
parent d1eb414749
commit 90ac5ec577
7 changed files with 45 additions and 56 deletions

View File

@@ -1045,7 +1045,10 @@ function fillErrorToRevertError(order: Order, error: FillOrderError): RevertErro
const orderHash = orderHashUtils.getOrderHashHex(order);
switch (error) {
case FillOrderError.InvalidTaker:
return new ExchangeRevertErrors.InvalidTakerError(orderHash);
return new ExchangeRevertErrors.ExchangeInvalidContextError(
ExchangeRevertErrors.ExchangeContextErrorCodes.InvalidTaker,
orderHash,
);
case FillOrderError.InvalidMakerAmount:
case FillOrderError.OrderUnfillable:
return new ExchangeRevertErrors.OrderStatusError(orderHash);