Update Counter.sol (#1917)

* Update Counter.sol

Added a comment in increment to make this more visible to not use SafeMath here.

* Update Counters.sol
This commit is contained in:
Ajitesh Mishra
2019-09-11 22:41:31 +05:30
committed by Nicolás Venturo
parent 19a41980a1
commit b33b906b6e

View File

@ -28,6 +28,7 @@ library Counters {
}
function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1;
}