[FIX] parse_number should create a non-native currency

"1" just means "some issuer, don't care which"
This commit is contained in:
Geert Weening
2014-05-28 17:10:32 -07:00
parent 8104f71162
commit a1face76b7

View File

@@ -762,7 +762,7 @@ Amount.prototype.parse_quality = function(quality, counterCurrency, counterIssue
Amount.prototype.parse_number = function(n) {
this._is_native = false;
this._currency = Currency.from_json(0);
this._currency = Currency.from_json(1);
this._issuer = UInt160.from_json(1);
this._is_negative = n < 0 ? 1 : 0;
this._value = new BigInteger(String(this._is_negative ? -n : n));