PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
118 stars 181 forks source link

KeeperCompatibleInterface is in v0.7, therefore not compatible with Solidity v0.8+ #203

Closed Paul-Sizon closed 8 months ago

Paul-Sizon commented 8 months ago
Screenshot 2567-02-02 at 15 18 02

I have issue with KeeperCompatibleInterface being in v.0.7 . In tutorial and code snippets I see it in v0.8, but in chainlink repo I see it in v0.7. Because of that, I can not run it together with Solidity v0.8+ :

These files import other files that use a different and incompatible version of Solidity:

  * contracts/Raffle.sol (^0.8.19) imports @chainlink/contracts/src/v0.7/interfaces/KeeperCompatibleInterface.sol (^0.7.0)

I tried reinstalling chainlink/contracts and adding this code to hardhat.config.js:

module.exports = {
  solidity: {
    compilers: [
      {
        version: "0.7.0",
        settings: {}
      },
      {
        version: "0.8.19",
        settings: {}
      }
    ]
  }
};

but no luck

Paul-Sizon commented 8 months ago

Nevermind, found a deprecation notice of KeeperCompatibleInterface in favor of AutomationCompatibleInterface) https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc/pull/110