Commit b33b906b by Ajitesh Mishra Committed by Nicolás Venturo

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
parent 19a41980
...@@ -28,6 +28,7 @@ library Counters { ...@@ -28,6 +28,7 @@ library Counters {
} }
function increment(Counter storage counter) internal { function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1; counter._value += 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment