mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Don't set offsets to 'undefined' anymore.
This commit is contained in:
@@ -911,7 +911,7 @@ Amount.prototype.parse_native = function (j) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._is_native = true;
|
this._is_native = true;
|
||||||
this._offset = undefined;
|
this._offset = 0;
|
||||||
this._is_negative = !!m[1] && this._value.compareTo(BigInteger.ZERO) !== 0;
|
this._is_negative = !!m[1] && this._value.compareTo(BigInteger.ZERO) !== 0;
|
||||||
|
|
||||||
if (this._value.compareTo(consts.bi_xns_max) > 0)
|
if (this._value.compareTo(consts.bi_xns_max) > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user