Temporarily switch revert reasons to TransferFailed
. Should be InvalidAmount
but because of an oversight in the assembly implementation of dispatchTransferFrom
, it always throws TransferFailed
This commit is contained in:
parent
f780e6f235
commit
1bc742aed1
@ -817,7 +817,7 @@ describe('Exchange core', () => {
|
|||||||
const takerAssetFillAmount = signedOrder.takerAssetAmount;
|
const takerAssetFillAmount = signedOrder.takerAssetAmount;
|
||||||
return expectRevertReasonOrAlwaysFailingTransactionAsync(
|
return expectRevertReasonOrAlwaysFailingTransactionAsync(
|
||||||
exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }),
|
exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }),
|
||||||
RevertReason.InvalidAmount,
|
RevertReason.TransferFailed,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -840,7 +840,7 @@ describe('Exchange core', () => {
|
|||||||
const takerAssetFillAmount = signedOrder.takerAssetAmount;
|
const takerAssetFillAmount = signedOrder.takerAssetAmount;
|
||||||
return expectRevertReasonOrAlwaysFailingTransactionAsync(
|
return expectRevertReasonOrAlwaysFailingTransactionAsync(
|
||||||
exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }),
|
exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }),
|
||||||
RevertReason.InvalidAmount,
|
RevertReason.TransferFailed,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user