Fix failing tests
This commit is contained in:
parent
173ba9b2b5
commit
b68acd101e
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
pragma solidity ^0.5.9;
|
pragma solidity ^0.5.9;
|
||||||
|
|
||||||
|
|
||||||
// The actual Chai contract can be found here: https://github.com/dapphub/chai
|
// The actual Chai contract can be found here: https://github.com/dapphub/chai
|
||||||
contract IChai {
|
contract IChai {
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ import "@0x/contracts-erc20/contracts/src/ERC20Token.sol";
|
|||||||
contract TestChaiDai is
|
contract TestChaiDai is
|
||||||
ERC20Token
|
ERC20Token
|
||||||
{
|
{
|
||||||
address private ALWAYS_REVERT_ADDRESS = address(1);
|
address private constant ALWAYS_REVERT_ADDRESS = address(1);
|
||||||
|
|
||||||
function draw(
|
function draw(
|
||||||
address from,
|
address from,
|
||||||
@ -41,11 +41,12 @@ contract TestChaiDai is
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
contract TestChaiBridge is
|
contract TestChaiBridge is
|
||||||
ChaiBridge
|
ChaiBridge
|
||||||
{
|
{
|
||||||
address public testChaiDai;
|
address public testChaiDai;
|
||||||
address private ALWAYS_REVERT_ADDRESS = address(1);
|
address private constant ALWAYS_REVERT_ADDRESS = address(1);
|
||||||
|
|
||||||
constructor()
|
constructor()
|
||||||
public
|
public
|
||||||
|
@ -20,7 +20,6 @@ pragma solidity ^0.5.9;
|
|||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
import "@0x/contracts-asset-proxy/contracts/src/bridges/Eth2DaiBridge.sol";
|
import "@0x/contracts-asset-proxy/contracts/src/bridges/Eth2DaiBridge.sol";
|
||||||
import "@0x/contracts-asset-proxy/contracts/src/interfaces/IEth2Dai.sol";
|
|
||||||
|
|
||||||
|
|
||||||
contract TestEth2DaiBridge is
|
contract TestEth2DaiBridge is
|
||||||
@ -35,11 +34,11 @@ contract TestEth2DaiBridge is
|
|||||||
TEST_ETH2DAI_ADDRESS = testEth2Dai;
|
TEST_ETH2DAI_ADDRESS = testEth2Dai;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _getEth2DaiContract()
|
function _getEth2DaiAddress()
|
||||||
internal
|
internal
|
||||||
view
|
view
|
||||||
returns (IEth2Dai exchange)
|
returns (address exchange)
|
||||||
{
|
{
|
||||||
return IEth2Dai(TEST_ETH2DAI_ADDRESS);
|
return TEST_ETH2DAI_ADDRESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,6 @@ pragma solidity ^0.5.9;
|
|||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
import "@0x/contracts-asset-proxy/contracts/src/bridges/UniswapBridge.sol";
|
import "@0x/contracts-asset-proxy/contracts/src/bridges/UniswapBridge.sol";
|
||||||
import "@0x/contracts-asset-proxy/contracts/src/interfaces/IUniswapExchangeFactory.sol";
|
|
||||||
import "@0x/contracts-erc20/contracts/src/interfaces/IEtherToken.sol";
|
|
||||||
|
|
||||||
|
|
||||||
contract TestUniswapBridge is
|
contract TestUniswapBridge is
|
||||||
@ -41,19 +39,19 @@ contract TestUniswapBridge is
|
|||||||
TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS = testUniswapExchangeFactory;
|
TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS = testUniswapExchangeFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWethContract()
|
function _getWethAddress()
|
||||||
public
|
internal
|
||||||
view
|
view
|
||||||
returns (IEtherToken token)
|
returns (address token)
|
||||||
{
|
{
|
||||||
return IEtherToken(TEST_WETH_ADDRESS);
|
return TEST_WETH_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUniswapExchangeFactoryContract()
|
function _getUniswapExchangeFactoryAddress()
|
||||||
public
|
internal
|
||||||
view
|
view
|
||||||
returns (IUniswapExchangeFactory factory)
|
returns (address factory)
|
||||||
{
|
{
|
||||||
return IUniswapExchangeFactory(TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS);
|
return TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user