Skip to content

Why is this error showing up #1289

Answered by mattjaf
ArkX69 asked this question in Q&A
Jul 25, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

oh, in solidity compiler version 8 we gotta specify that the address is a payable address for "send" and "transfer"

payable(msg.sender).transfer(address(this).balance);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mattjaf
Comment options

@krakxn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
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