Commit a3e02be4 by barakman Committed by Nicolás Venturo

Initialize `MAX_UINT` more neatly (#1166)

Use 2 ^ 256 - 1 instead that huge constant value.
parent d124f18d
...@@ -7,7 +7,7 @@ require('chai') ...@@ -7,7 +7,7 @@ require('chai')
.should(); .should();
contract('SafeMath', () => { contract('SafeMath', () => {
const MAX_UINT = new BigNumber('115792089237316195423570985008687907853269984665640564039457584007913129639935'); const MAX_UINT = new BigNumber(2).pow(256).minus(1);
beforeEach(async function () { beforeEach(async function () {
this.safeMath = await SafeMathMock.new(); this.safeMath = await SafeMathMock.new();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment