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

Wrong error message for msg.sender.call{value: amount}(""); #286

Open
avatar-lavventura opened this issue Oct 4, 2020 · 0 comments
Open
Labels

Comments

@avatar-lavventura
Copy link

For the following line: (bool success, ) = msg.sender.call{value: amount}(""); ; I am getting following error message:

Syntax error: unexpected token {
✖ 1 error found.

But solidity 0.7.0 recommend us to use {value: ...} an usage of { seems correct. Why solium generates this error message even it is correct and recommended usage in Solidity?

TypeError: Using ".value(...)" is deprecated. Use "{value: ...}" instead.
        (bool success, ) = msg.sender.call.value(amount)(""); 
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

1 participant