From a3e02be459c2f184f29da0ec88a99bbf99611061 Mon Sep 17 00:00:00 2001 From: barakman Date: Wed, 8 Aug 2018 12:58:04 +0300 Subject: [PATCH] Initialize `MAX_UINT` more neatly (#1166) Use 2 ^ 256 - 1 instead that huge constant value. --- test/math/SafeMath.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/math/SafeMath.test.js b/test/math/SafeMath.test.js index 7f5b64c3f..d33629d38 100644 --- a/test/math/SafeMath.test.js +++ b/test/math/SafeMath.test.js @@ -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();