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

SafeERC20.trySafeTransfer{,from} #5483

Merged
merged 2 commits into from
Feb 3, 2025
Merged

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Feb 3, 2025

Add 2 functions to SafeERC20 that return a boolean instead of reverting when a transfer isn't successful.

This maybe be usefull for contract (Paymaster?) that want to return an error code instead of reverting.

PR Checklist

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

@Amxx Amxx requested review from arr00 and ernestognw February 3, 2025 14:55
@ernestognw ernestognw merged commit 19c2f2f into master Feb 3, 2025
19 checks passed
@ernestognw ernestognw deleted the feature/trySafeTransfer branch February 3, 2025 18:26
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