Make resetSpentToday and setDailyLimit internal functions
This commit is contained in:
@ -39,12 +39,12 @@ contract DayLimit {
|
||||
// METHODS
|
||||
|
||||
// (re)sets the daily limit. doesn't alter the amount already spent today.
|
||||
function setDailyLimit(uint _newLimit) external {
|
||||
function _setDailyLimit(uint _newLimit) internal {
|
||||
dailyLimit = _newLimit;
|
||||
}
|
||||
|
||||
// resets the amount already spent today.
|
||||
function resetSpentToday() external {
|
||||
function _resetSpentToday() internal {
|
||||
spentToday = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -84,11 +84,11 @@ contract MultisigWallet is Multisig, Shareable, DayLimit {
|
||||
}
|
||||
|
||||
function setDailyLimit(uint _newLimit) onlymanyowners(sha3(msg.data)) external {
|
||||
this.setDailyLimit(_newLimit);
|
||||
_setDailyLimit(_newLimit);
|
||||
}
|
||||
|
||||
function resetSpentToday() onlymanyowners(sha3(msg.data)) external {
|
||||
this.resetSpentToday();
|
||||
_resetSpentToday();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -12,4 +12,12 @@ contract DayLimitMock is DayLimit {
|
||||
totalSpending += _value;
|
||||
}
|
||||
|
||||
function setDailyLimit(uint _newLimit) external {
|
||||
_setDailyLimit(_newLimit);
|
||||
}
|
||||
|
||||
function resetSpentToday() external {
|
||||
_resetSpentToday();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user