You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
496 B
23 lines
496 B
pragma solidity ^0.4.18;
|
|
import "../../contracts/DayLimit.sol";
|
|
|
|
contract DayLimitMock is DayLimit {
|
|
uint256 public totalSpending;
|
|
|
|
function DayLimitMock(uint256 _value) public DayLimit(_value) {
|
|
totalSpending = 0;
|
|
}
|
|
|
|
function attemptSpend(uint256 _value) external limitedDaily(_value) {
|
|
totalSpending += _value;
|
|
}
|
|
|
|
function setDailyLimit(uint256 _newLimit) external {
|
|
_setDailyLimit(_newLimit);
|
|
}
|
|
|
|
function resetSpentToday() external {
|
|
_resetSpentToday();
|
|
}
|
|
|
|
}
|
|
|