Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Cosman
committed
Apr 17, 2018
1 parent
e2041cf
commit d916896
Showing
4 changed files
with
120 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
pragma solidity ^0.4.18; | ||
|
||
import "../DelegateBurnable.sol"; | ||
|
||
contract FailingDelegate is DelegateBurnable { | ||
function delegateTotalSupply() public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateBalanceOf(address) public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateTransfer(address, uint256, address) public returns (bool) { | ||
return false; | ||
} | ||
function delegateAllowance(address, address) public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateTransferFrom(address, address, uint256, address) public returns (bool) { | ||
return false; | ||
} | ||
function delegateApprove(address, uint256, address) public returns (bool) { | ||
return false; | ||
} | ||
function delegateIncreaseApproval(address, uint, address) public returns (bool) { | ||
return false; | ||
} | ||
function delegateDecreaseApproval(address, uint, address) public returns (bool) { | ||
return false; | ||
} | ||
function delegateBurn(address, uint256) public {} | ||
} | ||
|
||
contract SucceedingDelegate is DelegateBurnable { | ||
function delegateTotalSupply() public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateBalanceOf(address) public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateTransfer(address, uint256, address) public returns (bool) { | ||
return true; | ||
} | ||
function delegateAllowance(address, address) public view returns (uint256) { | ||
return 0; | ||
} | ||
function delegateTransferFrom(address, address, uint256, address) public returns (bool) { | ||
return true; | ||
} | ||
function delegateApprove(address, uint256, address) public returns (bool) { | ||
return true; | ||
} | ||
function delegateIncreaseApproval(address, uint, address) public returns (bool) { | ||
return true; | ||
} | ||
function delegateDecreaseApproval(address, uint, address) public returns (bool) { | ||
return true; | ||
} | ||
function delegateBurn(address, uint256) public {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters