PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 182 forks source link

Perform UpKeep error #128

Open anasimov opened 1 year ago

anasimov commented 1 year ago
Hi, I was wondering if anyone could help, with this error. ` TypeError: Overriding function return types differ. --> contracts/raffle.sol:75:5: 75 function checkUpkeep( ^ (Relevant source part starts here and spans across multiple lines). Note: Overridden function is here: --> @chainlink/contracts/src/v0.8/interfaces/AutomationCompatibleInterface.sol:22:3:
22 function checkUpkeep(bytes calldata checkData) external returns (bool upkeepNeeded, bytes memory performData);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Contract "Raffle" should be marked as abstract. --> contracts/raffle.sol:19:1: 19 contract Raffle is VRFConsumerBaseV2, KeeperCompatibleInterface { ^ (Relevant source part starts here and spans across multiple lines). Note: Missing implementation: --> @chainlink/contracts/src/v0.8/interfaces/AutomationCompatibleInterface.sol:40:3:
40 function performUpkeep(bytes calldata performData) external;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error HH600: Compilation failed `

0fprod commented 1 year ago

Usually this

TypeError: Contract "Raffle" should be marked as abstract.
--> contracts/raffle.sol:19:1:

Is because you are missing something related to inheritance. Perhaps calling the constructor or overriding a virtual method.