Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParserError: Expected ';' but got ',' #6655

Open
Benedicity948 opened this issue Jun 15, 2024 · 2 comments
Open

ParserError: Expected ';' but got ',' #6655

Benedicity948 opened this issue Jun 15, 2024 · 2 comments
Labels

Comments

@Benedicity948
Copy link

Lesson

Lesson 4

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

https://youtu.be/gyMwXuJrbJQ?t=17343

Operating System

Windows

Describe the bug

ParserError: Expected ';' but got ','
--> contracts/FundMe.sol:55:26:
|
55 | {bool callSuccess, } = payable(msg.sender).call{value: address(this).balance}("");
| ^

I keep encountering this error every time in my contract. Please anyone with a solution.

@tusharr1411
Copy link

put your complete code...

@handychristian
Copy link

it should be (bool callSuccess, ) = payable(msg.sender).call{value: address(this).balance(""); instead of {bool callSuccess, } = payable(msg.sender).call{value: address(this).balance}("");

use () instead of {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants