diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-31 03:10:24 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-31 03:10:24 +0800 |
commit | 09b4d5e0e4a7100ab591a8711c10a173fb6ea16c (patch) | |
tree | ff61babe24d6e4df7842048074fe27e4ce23f61d /packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol | |
parent | eb4517d7379128b18c830b704742154c8b2f3c8d (diff) | |
download | dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.gz dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.bz2 dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.lz dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.xz dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.zst dexon-0x-contracts-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.zip |
Add cancelOrderInternal, use within batchCancelOrders
Diffstat (limited to 'packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol b/packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol index 4f4e28302..e3311c703 100644 --- a/packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol +++ b/packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol @@ -51,6 +51,7 @@ contract ReentrantERC20Token is MARKET_SELL_ORDERS, MATCH_ORDERS, CANCEL_ORDER, + BATCH_CANCEL_ORDERS, CANCEL_ORDERS_UP_TO, SET_SIGNATURE_VALIDATOR_APPROVAL } @@ -150,6 +151,11 @@ contract ReentrantERC20Token is EXCHANGE.cancelOrder.selector, order ); + } else if (currentFunctionId == uint8(ExchangeFunction.BATCH_CANCEL_ORDERS)) { + calldata = abi.encodeWithSelector( + EXCHANGE.batchCancelOrders.selector, + orders + ); } else if (currentFunctionId == uint8(ExchangeFunction.CANCEL_ORDERS_UP_TO)) { calldata = abi.encodeWithSelector( EXCHANGE.cancelOrdersUpTo.selector, |