run linter

This commit is contained in:
Noah Zinsmeister
2020-01-24 11:26:00 -05:00
parent a55aa4bfed
commit 7c6d60dcc1
5 changed files with 90 additions and 80 deletions

View File

@ -4,14 +4,14 @@ pragma solidity =0.5.16;
library SafeMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, "ds-math-add-overflow");
require((z = x + y) >= x, 'ds-math-add-overflow');
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x, "ds-math-sub-underflow");
require((z = x - y) <= x, 'ds-math-sub-underflow');
}
function mul(uint x, uint y) internal pure returns (uint z) {
require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');
}
}