|
|
@ -1021,7 +1021,7 @@ var formatOutputInt = function (param) { |
|
|
|
var value = param.staticPart() || "0"; |
|
|
|
var value = param.staticPart() || "0"; |
|
|
|
|
|
|
|
|
|
|
|
// check if it's negative number
|
|
|
|
// check if it's negative number
|
|
|
|
// it it is, return two's complement
|
|
|
|
// it is, return two's complement
|
|
|
|
if (signedIsNegative(value)) { |
|
|
|
if (signedIsNegative(value)) { |
|
|
|
return new BigNumber(value, 16).minus(new BigNumber('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16)).minus(1); |
|
|
|
return new BigNumber(value, 16).minus(new BigNumber('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16)).minus(1); |
|
|
|
} |
|
|
|
} |
|
|
@ -2250,7 +2250,7 @@ var isAddress = function (address) { |
|
|
|
// check if it has the basic requirements of an address
|
|
|
|
// check if it has the basic requirements of an address
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) { |
|
|
|
} else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) { |
|
|
|
// If it's all small caps or all all caps, return true
|
|
|
|
// If it's all small caps or all caps, return true
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Otherwise check each case
|
|
|
|
// Otherwise check each case
|
|
|
|