Initialize MAX_UINT more neatly (#1166)
Use 2 ^ 256 - 1 instead that huge constant value.
This commit is contained in:
committed by
Nicolás Venturo
parent
d124f18dde
commit
a3e02be459
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user