Просмотр исходного кода

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 лет назад
Родитель
Сommit
b33b906b6e
1 измененных файлов с 1 добавлено и 0 удалено
  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;
     }