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

Deprecate SafeERC20.safeIncreaseAllowance and SafeERC20.safeDecreaseAllowance #5259

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Oct 15, 2024

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@Amxx Amxx added this to the 5.1-rc milestone Oct 15, 2024
@Amxx Amxx requested review from arr00 and cairoeth October 15, 2024 14:02
Copy link

changeset-bot bot commented Oct 15, 2024

🦋 Changeset detected

Latest commit: a26e987

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

arr00
arr00 previously approved these changes Oct 15, 2024
Copy link
Contributor

@arr00 arr00 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@cairoeth cairoeth left a comment

Choose a reason for hiding this comment

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

should forceApprove also have a comment?

.changeset/sharp-rules-joke.md Outdated Show resolved Hide resolved
@Amxx
Copy link
Collaborator Author

Amxx commented Oct 16, 2024

should forceApprove also have a comment?

No deprecation, but a comment yes maybe

@Amxx Amxx requested review from arr00 and cairoeth October 16, 2024 19:48
cairoeth
cairoeth previously approved these changes Oct 16, 2024
@cairoeth cairoeth dismissed their stale review October 16, 2024 20:11

actually need to think about this more

Copy link
Contributor

@cairoeth cairoeth left a comment

Choose a reason for hiding this comment

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

I'm not a big fan of marking safeIncreaseAllowance and safeDecreaseAllowance as deprecated given their common usage in production contracts, so I opened #5262, which is the same but without the deprecation. I'll still approve this in case you think deprecation still makes sense despite the usage.

@Amxx Amxx closed this Oct 17, 2024
@Amxx Amxx deleted the 5_1_rc/erc20/deprecate_safe_increase_decrease branch October 17, 2024 11:33
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.

3 participants