Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
explain how to use SafeERC20
  • Loading branch information
frangio committed Aug 28, 2017
commit 7b463769a5d88fb1e312b10ce5bf810d39853289
2 changes: 2 additions & 0 deletions contracts/token/SafeERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down