-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Ensure addr.call.value() is invoked #697
Comments
Are you recommending a warning? It is not a compiler error, because you could do things like:
|
I think this would be a good place for a warning, since we're ignoring a return value from a low-level function. Related: #677 |
@chriseth didn't realize you could store it as a variable. I think a warning would be apt. |
Is it useful storing it is a variable, though? |
@axic Solidity should not impose artificial restrictions. It is useful to store functions in variables and the ether amount and gas sent together with a function is part of it. |
So if |
I don't think this is an issue anymore with the new syntax. |
contract Test {
function Test(){
msg.sender.call.value(0);
msg.sender.call.value(0)();
}
}
My understanding is the first call doesn't actually do anything. If so, it shouldn't compile
The text was updated successfully, but these errors were encountered: