Fix failing tests
This commit is contained in:
@@ -20,7 +20,6 @@ pragma solidity ^0.5.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
import "@0x/contracts-asset-proxy/contracts/src/bridges/Eth2DaiBridge.sol";
|
||||
import "@0x/contracts-asset-proxy/contracts/src/interfaces/IEth2Dai.sol";
|
||||
|
||||
|
||||
contract TestEth2DaiBridge is
|
||||
@@ -35,11 +34,11 @@ contract TestEth2DaiBridge is
|
||||
TEST_ETH2DAI_ADDRESS = testEth2Dai;
|
||||
}
|
||||
|
||||
function _getEth2DaiContract()
|
||||
function _getEth2DaiAddress()
|
||||
internal
|
||||
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;
|
||||
|
||||
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
|
||||
@@ -41,19 +39,19 @@ contract TestUniswapBridge is
|
||||
TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS = testUniswapExchangeFactory;
|
||||
}
|
||||
|
||||
function getWethContract()
|
||||
public
|
||||
function _getWethAddress()
|
||||
internal
|
||||
view
|
||||
returns (IEtherToken token)
|
||||
returns (address token)
|
||||
{
|
||||
return IEtherToken(TEST_WETH_ADDRESS);
|
||||
return TEST_WETH_ADDRESS;
|
||||
}
|
||||
|
||||
function getUniswapExchangeFactoryContract()
|
||||
public
|
||||
function _getUniswapExchangeFactoryAddress()
|
||||
internal
|
||||
view
|
||||
returns (IUniswapExchangeFactory factory)
|
||||
returns (address factory)
|
||||
{
|
||||
return IUniswapExchangeFactory(TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS);
|
||||
return TEST_UNISWAP_EXCHANGE_FACTORY_ADDRESS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user