Browse Source

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
Ajitesh Mishra 6 years ago
parent
commit
b33b906b6e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contracts/drafts/Counters.sol

+ 1 - 0
contracts/drafts/Counters.sol

@@ -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;
     }
     }