Skip to content

Commit c3178ff

Browse files
committed
Add message to caution that SafeMath.sol is for Solidity 0.8
1 parent f8cc8b8 commit c3178ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contracts/math/SafeMath.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
pragma solidity ^0.8.0;
44

5+
// CAUTION
6+
// This version of SafeMath should only be used with Solidity 0.8 or later,
7+
// because it relies on the compiler's built in overflow checks.
8+
59
/**
610
* @dev Wrappers over Solidity's arithmetic operations.
711
*/

0 commit comments

Comments
 (0)