@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.
Files changed (2) hide show
  1. package/lib/index.js +10 -5
  2. 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
- //log.error(tag,"e: ",{e})
453
- output.success = false;
454
- output.error = e_8;
455
- return [2 /*return*/, output];
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/binance-network",
3
- "version": "8.1.20",
3
+ "version": "8.1.21",
4
4
  "scripts": {
5
5
  "create": "npm run build && npm run test",
6
6
  "build": "tsc -p .",