Skip to content

SyntaxError: Free functions cannot have visibility. #1434

Discussion options

You must be logged in to vote

You have declared the following functions outside the contract requestRandomWinners,fulfillRandomWords,getRecentWinner .Move them back into the contract and the errors should go away.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AwaisTahseencode
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants