소스 검색

explain how to use SafeERC20

Francisco Giordano 8 년 전
부모
커밋
7b463769a5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      contracts/token/SafeERC20.sol

+ 2 - 0
contracts/token/SafeERC20.sol

@@ -6,6 +6,8 @@ import './ERC20.sol';
 /**
  * @title SafeERC20
  * @dev Wrappers around ERC20 operations that throw on failure.
+ * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
+ * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
  */
 library SafeERC20 {
   function safeTransfer(ERC20Basic token, address to, uint256 value) internal {