Skip to content

Commit 7b46376

Browse files
committed
explain how to use SafeERC20
1 parent c7636bd commit 7b46376

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contracts/token/SafeERC20.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import './ERC20.sol';
66
/**
77
* @title SafeERC20
88
* @dev Wrappers around ERC20 operations that throw on failure.
9+
* To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
10+
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
911
*/
1012
library SafeERC20 {
1113
function safeTransfer(ERC20Basic token, address to, uint256 value) internal {

0 commit comments

Comments
 (0)