* signed safe math * fix lint errors * refactor overflow checks and add descriptions * remove incorrect description * add test for reversed arguments in multiplication test * fix power operator * improve multiplication test descriptions * Update SafeMath.test.js * add feature to changelog
9 lines
271 B
JavaScript
9 lines
271 B
JavaScript
const BigNumber = web3.BigNumber;
|
|
|
|
module.exports = {
|
|
ZERO_ADDRESS: '0x0000000000000000000000000000000000000000',
|
|
MAX_UINT256: new BigNumber(2).pow(256).minus(1),
|
|
MAX_INT256: new BigNumber(2).pow(255).minus(1),
|
|
MIN_INT256: new BigNumber(2).pow(255).times(-1),
|
|
};
|