Sfoglia il codice sorgente

Add message to caution that SafeMath.sol is for Solidity 0.8

Francisco Giordano 4 anni fa
parent
commit
c3178ff942
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      contracts/math/SafeMath.sol

+ 4 - 0
contracts/math/SafeMath.sol

@@ -2,6 +2,10 @@
 
 pragma solidity ^0.8.0;
 
+// CAUTION
+// This version of SafeMath should only be used with Solidity 0.8 or later,
+// because it relies on the compiler's built in overflow checks.
+
 /**
  * @dev Wrappers over Solidity's arithmetic operations.
  */