Skip to content

FundMe lesson : TypeError in withdraw function() #1741

Answered by cromewar
AyuK03 asked this question in Q&A
Discussion options

You must be logged in to vote

hello @AyuK03
This is because you are trying to use solidity version 0.8, and there are some changes on that version, you have two solutions here.

  1. Back to 0.6 to match the course.
  2. make.sender payable payable(msg.sender).transfer.....

I hope this info might help.

Replies: 1 comment

Comment options

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