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

Support new call and gas syntax #14

Open
fvictorio opened this issue Mar 11, 2020 · 2 comments
Open

Support new call and gas syntax #14

fvictorio opened this issue Mar 11, 2020 · 2 comments

Comments

@fvictorio
Copy link

See release and this comment

The parser should support this:

(bool success, ) = recipient.call.value(amount)("");
@nventuro
Copy link

@fvictorio that's the old syntax, the new one is

(bool success, ) = recipient.call{value: amount}("");

Note that things like this are also supported

(bool success, ) = recipient.call{value: amount, gas: 30000}("");

@fvictorio
Copy link
Author

Oops, yeah, my bad, copy-pasted the wrong snippet from your issue.

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

No branches or pull requests

2 participants