Skip to content

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 requested a review from spalladino August 28, 2017 20:52
@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