From b33b906b6e0ce641b26182589973e723e5131edd Mon Sep 17 00:00:00 2001 From: Ajitesh Mishra <48247702+AjiteshBD@users.noreply.github.com> Date: Wed, 11 Sep 2019 22:41:31 +0530 Subject: [PATCH] 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 --- contracts/drafts/Counters.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/drafts/Counters.sol b/contracts/drafts/Counters.sol index 56c91319b..15ecb775f 100644 --- a/contracts/drafts/Counters.sol +++ b/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; }