@cityofzion/bs-neo-legacy 1.12.7 → 1.12.8

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.
@@ -261,9 +261,11 @@ class DoraBDSNeoLegacy {
261
261
  });
262
262
  }
263
263
  getUnclaimed(address) {
264
+ var _a;
264
265
  return __awaiter(this, void 0, void 0, function* () {
265
- const { unclaimed } = yield dora_ts_1.api.NeoLegacyREST.getUnclaimed(address, __classPrivateFieldGet(this, _DoraBDSNeoLegacy_network, "f").id);
266
- return (unclaimed / Math.pow(10, __classPrivateFieldGet(this, _DoraBDSNeoLegacy_claimToken, "f").decimals)).toFixed(__classPrivateFieldGet(this, _DoraBDSNeoLegacy_claimToken, "f").decimals);
266
+ const rpcClient = new neon_js_1.rpc.RPCClient(__classPrivateFieldGet(this, _DoraBDSNeoLegacy_network, "f").url);
267
+ const response = yield rpcClient.getUnclaimed(address);
268
+ return ((_a = response === null || response === void 0 ? void 0 : response.unclaimed) !== null && _a !== void 0 ? _a : 0).toFixed(__classPrivateFieldGet(this, _DoraBDSNeoLegacy_claimToken, "f").decimals);
267
269
  });
268
270
  }
269
271
  getBlockHeight() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo-legacy",
3
- "version": "1.12.7",
3
+ "version": "1.12.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Coz",