Ver código fonte

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 anos atrás
pai
commit
b33b906b6e
1 arquivos alterados com 1 adições e 0 exclusões
  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 {
+        // The {SafeMath} overflow check can be skipped here, see the comment at the top
         counter._value += 1;
     }