diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-06-27 03:59:35 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-27 04:57:55 +0800 |
commit | b6d8dcb6e11cfe8da6854371029fe1af3f6a68de (patch) | |
tree | e57d50e796ea356544eaf38476adfdfba2a8a68a /packages/contracts/test/exchange | |
parent | 08ee1ab2e636099344cade1c8bff67e9b3da2bb4 (diff) | |
download | dexon-0x-contracts-b6d8dcb6e11cfe8da6854371029fe1af3f6a68de.tar.gz dexon-0x-contracts-b6d8dcb6e11cfe8da6854371029fe1af3f6a68de.tar.zst dexon-0x-contracts-b6d8dcb6e11cfe8da6854371029fe1af3f6a68de.zip |
Make dispatchTransferFrom revert with reason from AssetProxy on failure
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 99d2bc157..59756fe9a 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -817,7 +817,7 @@ describe('Exchange core', () => { const takerAssetFillAmount = signedOrder.takerAssetAmount; return expectRevertReasonOrAlwaysFailingTransactionAsync( exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }), - RevertReason.TransferFailed, + RevertReason.InvalidAmount, ); }); @@ -840,7 +840,7 @@ describe('Exchange core', () => { const takerAssetFillAmount = signedOrder.takerAssetAmount; return expectRevertReasonOrAlwaysFailingTransactionAsync( exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }), - RevertReason.TransferFailed, + RevertReason.InvalidAmount, ); }); |