Skip to content

Commit

Permalink
Update Counter.sol (#1917)
Browse files Browse the repository at this point in the history
* Update Counter.sol

Added a comment in increment to make this more visible to not use SafeMath here.

* Update Counters.sol
  • Loading branch information
AjiteshBD authored and nventuro committed Sep 11, 2019
1 parent 19a4198 commit b33b906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/drafts/Counters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b33b906

Please sign in to comment.