Browse Source

Initialize `MAX_UINT` more neatly (#1166)

Use 2 ^ 256 - 1 instead that huge constant value.
barakman 7 years ago
parent
commit
a3e02be459
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/math/SafeMath.test.js

+ 1 - 1
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();