0

I have a problem in remix ide: when I import a file from github it automatically download it in .deps, but when that file imports other files from an outside directory (like import "../../etc) remix doesn't download those files and it gives errors

1
  • Can you share a minimal example where the problem shows? I'd guess that remix is failing to understand the import path.
    – Ismael
    Sep 30, 2022 at 23:38

2 Answers 2

0

I was having the same issue and for some reason it ended up being that I was using the wrong compiler version. Not sure if this will fix your issue, but try checking that.

0

// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.5;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol"; import "@aave/protocol-v2/contracts/interfaces/ILendingPool.sol"; import "@aave/protocol-v2/contracts/interfaces/ILendingPoolAddressesProvider.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "https://raw.githubusercontent.com/makerdao/multicall/master/src/Multicall2.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Apr 19 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.