EatTheBlocks Forum

Flashloan deployment error

Hi, I configured everything but at the time of deploying the contract to mainnet I am facing this issue

/Users/bhasineeraj/bhasineeraj/flashloan/contracts/Flashloan.sol:7:1: DeclarationError: Identifier already declared.
import “…/node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol”;
@openzeppelin/contracts/token/ERC20/IERC20.sol:7:1: The previous declaration is here:
interface IERC20 {
^ (Relevant source part starts here and spans across multiple lines).

I am sharing a screenshot with you and github link to review the code

Please use exactly the code like it is in the repo, your imports for studydefi and openzeppelin are different.