From c3178ff942f9f487b9fda2c648aa19e633560adb Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 19 Feb 2021 18:17:42 -0300 Subject: [PATCH] Add message to caution that SafeMath.sol is for Solidity 0.8 --- contracts/math/SafeMath.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/math/SafeMath.sol b/contracts/math/SafeMath.sol index a9a3bdc8c..b1720f31e 100644 --- a/contracts/math/SafeMath.sol +++ b/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. */