Skip to content

Commit

Permalink
Fix SafeERC20 lib approve (#605)
Browse files Browse the repository at this point in the history
* Fix SafeERC20 approve

* use infra rc12

bump version to rc12
  • Loading branch information
orenyodfat authored Mar 5, 2019
1 parent 8a6fbc5 commit f742ffa
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 79 deletions.
2 changes: 1 addition & 1 deletion contracts/libs/SafeERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ library SafeERC20 {

// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero.
require((_value == 0) || (IERC20(_erc20Addr).allowance(msg.sender, _spender) == 0));
require((_value == 0) || (IERC20(_erc20Addr).allowance(address(this), _spender) == 0));

(bool success, bytes memory returnValue) =
// solhint-disable-next-line avoid-low-level-calls
Expand Down
Loading

0 comments on commit f742ffa

Please sign in to comment.