@0x/contracts-asset-proxy: Tweak IUniswapExchangeFactory.
				
					
				
			This commit is contained in:
		@@ -210,7 +210,9 @@ contract UniswapBridge is
 | 
			
		||||
        if (fromTokenAddress == address(getWethContract())) {
 | 
			
		||||
            exchangeTokenAddress = toTokenAddress;
 | 
			
		||||
        }
 | 
			
		||||
        exchange = getUniswapExchangeFactoryContract().getExchange(exchangeTokenAddress);
 | 
			
		||||
        exchange = IUniswapExchange(
 | 
			
		||||
            getUniswapExchangeFactoryContract().getExchange(exchangeTokenAddress)
 | 
			
		||||
        );
 | 
			
		||||
        require(address(exchange) != address(0), "NO_UNISWAP_EXCHANGE_FOR_TOKEN");
 | 
			
		||||
        return exchange;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -28,5 +28,5 @@ interface IUniswapExchangeFactory {
 | 
			
		||||
    function getExchange(address tokenAddress)
 | 
			
		||||
        external
 | 
			
		||||
        view
 | 
			
		||||
        returns (IUniswapExchange);
 | 
			
		||||
        returns (address);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -407,9 +407,9 @@ contract TestUniswapBridge is
 | 
			
		||||
    function getExchange(address tokenAddress)
 | 
			
		||||
        external
 | 
			
		||||
        view
 | 
			
		||||
        returns (IUniswapExchange)
 | 
			
		||||
        returns (address)
 | 
			
		||||
    {
 | 
			
		||||
        return IUniswapExchange(_testExchanges[tokenAddress]);
 | 
			
		||||
        return address(_testExchanges[tokenAddress]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // @dev Use `wethToken`.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user