aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-31 03:10:24 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-31 03:10:24 +0800
commit09b4d5e0e4a7100ab591a8711c10a173fb6ea16c (patch)
treeff61babe24d6e4df7842048074fe27e4ce23f61d /packages/contracts/src/2.0.0/test/ReentrantERC20Token/ReentrantERC20Token.sol
parenteb4517d7379128b18c830b704742154c8b2f3c8d (diff)
downloaddexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar
dexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.gz
dexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.bz2
dexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.lz
dexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.xz
dexon-sol-tools-09b4d5e0e4a7100ab591a8711c10a173fb6ea16c.tar.zst
dexon-sol-tools-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.sol6
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,