* update solidity-coverage to ^0.5.0 * update truffle dependency to ^4.1.8 * update solium to ^1.1.7 * update all contracts to solidity ^0.4.23
26 lines
488 B
Solidity
26 lines
488 B
Solidity
pragma solidity ^0.4.23;
|
|
|
|
import "../../contracts/DayLimit.sol";
|
|
|
|
|
|
contract DayLimitMock is DayLimit {
|
|
uint256 public totalSpending;
|
|
|
|
constructor(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();
|
|
}
|
|
|
|
}
|