aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-03-30 03:38:13 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:17 +0800
commit0c74a3bc6610a9c71bf2c5111138ae3e162cffd6 (patch)
tree5ee33615d71824285f0da796c6e40926a3d01656 /packages/contracts/src
parent75f77f3e8675c468d88456aec02561732c7646fb (diff)
downloaddexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar.gz
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar.bz2
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar.lz
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar.xz
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.tar.zst
dexon-sol-tools-0c74a3bc6610a9c71bf2c5111138ae3e162cffd6.zip
Add tests for marketBuyOrders
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
index cfd52f71d..030743348 100644
--- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
+++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
@@ -278,7 +278,7 @@ contract MixinWrapperFunctions is
returns (uint256 takerAmountBought)
{
for (uint256 i = 0; i < orders.length; i++) {
- require(orders[i].takerTokenAddress == orders[0].takerTokenAddress);
+ require(orders[i].makerTokenAddress == orders[0].makerTokenAddress);
uint256 remainingTakerBuyAmount = safeSub(takerBuyAmount, takerAmountBought);
uint256 takerSellAmount = getPartialAmount(
orders[i].makerBuyAmount,
@@ -319,7 +319,7 @@ contract MixinWrapperFunctions is
returns (uint256 takerAmountBought)
{
for (uint256 i = 0; i < orders.length; i++) {
- require(orders[i].takerTokenAddress == orders[0].takerTokenAddress);
+ require(orders[i].makerTokenAddress == orders[0].makerTokenAddress);
uint256 remainingTakerBuyAmount = safeSub(takerBuyAmount, takerAmountBought);
uint256 takerSellAmount = getPartialAmount(
orders[i].makerBuyAmount,