|
@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
|
|
|
import "../token/ERC20.sol";
|
|
|
import "../token/SafeERC20.sol";
|
|
|
|
|
|
+
|
|
|
contract ERC20FailingMock is ERC20 {
|
|
|
function transfer(address, uint256) public returns (bool) {
|
|
|
return false;
|
|
@@ -25,6 +26,7 @@ contract ERC20FailingMock is ERC20 {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
contract ERC20SucceedingMock is ERC20 {
|
|
|
function transfer(address, uint256) public returns (bool) {
|
|
|
return true;
|
|
@@ -47,6 +49,7 @@ contract ERC20SucceedingMock is ERC20 {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
contract SafeERC20Helper {
|
|
|
using SafeERC20 for ERC20;
|
|
|
|