Initialize MAX_UINT more neatly (#1166)

Use 2 ^ 256 - 1 instead that huge constant value.
This commit is contained in:
barakman
2018-08-08 12:58:04 +03:00
committed by Nicolás Venturo
parent d124f18dde
commit a3e02be459

View File

@ -7,7 +7,7 @@ require('chai')
.should();
contract('SafeMath', () => {
const MAX_UINT = new BigNumber('115792089237316195423570985008687907853269984665640564039457584007913129639935');
const MAX_UINT = new BigNumber(2).pow(256).minus(1);
beforeEach(async function () {
this.safeMath = await SafeMathMock.new();