@pioneer-platform/binance-network 8.1.20 → 8.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +10 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -426,7 +426,7 @@ var get_block_remote = function (height) {
|
|
|
426
426
|
};
|
|
427
427
|
var get_account = function (address) {
|
|
428
428
|
return __awaiter(this, void 0, void 0, function () {
|
|
429
|
-
var tag, output, url, result, balanceInfo, e_8;
|
|
429
|
+
var tag, output, url, result, balanceInfo, e_8, output_2;
|
|
430
430
|
return __generator(this, function (_a) {
|
|
431
431
|
switch (_a.label) {
|
|
432
432
|
case 0:
|
|
@@ -449,10 +449,15 @@ var get_account = function (address) {
|
|
|
449
449
|
return [2 /*return*/, balanceInfo];
|
|
450
450
|
case 3:
|
|
451
451
|
e_8 = _a.sent();
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
452
|
+
output_2 = {
|
|
453
|
+
account_number: 0,
|
|
454
|
+
address: address,
|
|
455
|
+
balances: [],
|
|
456
|
+
flags: 0,
|
|
457
|
+
public_key: [],
|
|
458
|
+
sequence: 0
|
|
459
|
+
};
|
|
460
|
+
return [2 /*return*/, output_2];
|
|
456
461
|
case 4: return [2 /*return*/];
|
|
457
462
|
}
|
|
458
463
|
});
|