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
463 B
23 lines
463 B
pragma solidity ^0.4.4;
|
|
import "../DayLimit.sol";
|
|
|
|
contract DayLimitMock is DayLimit {
|
|
uint public totalSpending;
|
|
|
|
function DayLimitMock(uint _value) DayLimit(_value) {
|
|
totalSpending = 0;
|
|
}
|
|
|
|
function attemptSpend(uint _value) external limitedDaily(_value) {
|
|
totalSpending += _value;
|
|
}
|
|
|
|
function setDailyLimit(uint _newLimit) external {
|
|
_setDailyLimit(_newLimit);
|
|
}
|
|
|
|
function resetSpentToday() external {
|
|
_resetSpentToday();
|
|
}
|
|
|
|
}
|
|
|