Update test contracts

This commit is contained in:
Amir Bandeali
2019-07-29 21:58:39 -05:00
parent ae859fa01e
commit 9b786df828
2 changed files with 3 additions and 14 deletions

View File

@@ -19,6 +19,8 @@
pragma solidity ^0.5.5;
pragma experimental ABIEncoderV2;
import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol";
import "@0x/contracts-exchange-libs/contracts/src/LibFillResults.sol";
import "../src/Exchange.sol";
@@ -39,17 +41,6 @@ contract TestExchangeInternals is
Exchange(chainId)
{}
function calculateFillResults(
Order memory order,
uint256 takerAssetFilledAmount
)
public
pure
returns (FillResults memory fillResults)
{
return _calculateFillResults(order, takerAssetFilledAmount);
}
/// @dev Call `_updateFilledState()` but first set `filled[order]` to
/// `orderTakerAssetFilledAmount`.
function testUpdateFilledState(
@@ -57,7 +48,7 @@ contract TestExchangeInternals is
address takerAddress,
bytes32 orderHash,
uint256 orderTakerAssetFilledAmount,
FillResults memory fillResults
LibFillResults.FillResults memory fillResults
)
public
{

View File

@@ -20,14 +20,12 @@ pragma solidity ^0.5.5;
pragma experimental ABIEncoderV2;
import "@0x/contracts-exchange-libs/contracts/src/LibEIP712ExchangeDomain.sol";
import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol";
import "../src/MixinSignatureValidator.sol";
import "../src/MixinTransactions.sol";
contract TestSignatureValidator is
LibEIP712ExchangeDomain,
LibOrder,
MixinSignatureValidator
{