Skip to content

Lesson 9: Function has override but does not override anything. #1690

Answered by othaime-en
refugedesigns asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @refugedesigns There's several errors in your code, since we are overriding functions from another contracts, you need to be keen on the variables. YOu shouldn't change them.
A couple suggestions:
1: Your third import should be interfaces/KeeperCompatibleInterface.sol not v0.8/KeeperCompatible.sol also change it in the contract declaration line: contract Raffle is VRFConsumerBaseV2, KeeperCompatibleInterface {
Be sure to add interface

2: The variable names for checkUpkeep and performUpkeep should be identical to the same variables in the VRF contracts that we are inheriting. Do a search and replace and change checkUpKeep and performUpKeep to checkUpkeep and performUpkeep
DON'T capit…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@refugedesigns
Comment options

Comment options

You must be logged in to vote
1 reply
@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
1 reply
@refugedesigns
Comment options

Comment options

You must be logged in to vote
3 replies
@othaime-en
Comment options

@refugedesigns
Comment options

@othaime-en
Comment options

Answer selected by refugedesigns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants