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

Add SafeERC20 helpers #413

Merged
merged 3 commits into from
Aug 28, 2017
Merged

Add SafeERC20 helpers #413

merged 3 commits into from
Aug 28, 2017

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Aug 28, 2017

Adds a library of wrappers around the ERC20 operations that can fail by returning a bool. The wrappers allow one to perform these operations safely without needing to check the return value, since the library takes care of it.

To use it, developers can add a using SafeERC20 for ERC20; statement in their contracts. Then the functions will be available as methods of any ERC20 contract like token.safeTransfer(...), etcetera.

@frangio frangio merged commit dcdc453 into OpenZeppelin:master Aug 28, 2017
@frangio frangio deleted the add-safe-erc20 branch August 28, 2017 22:43
ProphetDaniel pushed a commit to classicdelta/Smart-Contracts that referenced this pull request Mar 9, 2018
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.

2 participants