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

fix: transfers with .call excluded from warning as low level code #394

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

dbale-altoros
Copy link
Collaborator

This PR comes from
#329
All credits to @potomak

@potomak
Copy link

potomak commented Jan 30, 2023

@dbale-altoros thanks for the credit.
If you want I can author another commit.

Comment on lines 36 to 37
anyAddress.call{value: 1 ether}("");
anyAddress.call.value(code)();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a.call.value is deprecated.

Suggested change
anyAddress.call{value: 1 ether}("");
anyAddress.call.value(code)();
anyAddress.call{value: 1 ether}("");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that this means updating the implementation and the tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

@dbale-altoros dbale-altoros merged commit 2970288 into master Feb 8, 2023
@dbale-altoros dbale-altoros deleted the fix/avoid-low-level-calls branch February 8, 2023 13:24
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

Successfully merging this pull request may close these issues.

None yet

4 participants