Open adria0 opened 7 years ago
A functions prefixed check modifies internal counters, consider to make the function constant and move counter inc to the non-const caller functions.
check
function checkMainTransfer(address _recipient, uint _amount) internal returns (bool) { ... accTxsInDay ++; ... }
function checkSpenderTransfer(Spender storage spender, address _recipient, uint _amount) internal returns (bool) { ... spender.accTxsInDay ++; ... }
May be we need to find a better name for this functions, but the check has a daily state, so I don't see a better place to move this..
A functions prefixed
check
modifies internal counters, consider to make the function constant and move counter inc to the non-const caller functions.