aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/2.0.0/utils/SafeMath
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-07-23 12:04:49 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-07-23 23:02:51 +0800
commitdcc0908617b83de8f45af3e9ca6854b897be3d72 (patch)
tree061bbbc74e77143819aca9d9de3cde59566b5972 /packages/contracts/src/2.0.0/utils/SafeMath
parent45d68285f14ba328e1bf5a8cc9e59cdb39d7f306 (diff)
downloaddexon-sol-tools-dcc0908617b83de8f45af3e9ca6854b897be3d72.tar.gz
dexon-sol-tools-dcc0908617b83de8f45af3e9ca6854b897be3d72.tar.zst
dexon-sol-tools-dcc0908617b83de8f45af3e9ca6854b897be3d72.zip
Add more tests and fixes
Diffstat (limited to 'packages/contracts/src/2.0.0/utils/SafeMath')
-rw-r--r--packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol b/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol
index 190989181..63a2a085f 100644
--- a/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol
+++ b/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol
@@ -34,7 +34,7 @@ contract SafeMath {
{
require(
b <= a,
- "UINT256_OVERFLOW"
+ "UINT256_UNDERFLOW"
);
return a - b;
}