@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
|
|
266
|
-
|
|
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() {
|