floExchangeAPI_v1.1.2

- Changing version number for previous update
This commit is contained in:
sairajzero 2022-05-02 23:30:56 +05:30
parent ac2b4c3c1c
commit 7a4261c5a0

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
(function(EXPORTS) { //floExchangeAPI v1.1.1 (function(EXPORTS) { //floExchangeAPI v1.1.2
const exchangeAPI = EXPORTS; const exchangeAPI = EXPORTS;
/*Kademlia DHT K-bucket implementation as a binary tree.*/ /*Kademlia DHT K-bucket implementation as a binary tree.*/
@ -1137,9 +1137,7 @@
exchangeAPI.init = function refreshDataFromBlockchain(adminID = floGlobals.adminID, appName = floGlobals.application) { exchangeAPI.init = function refreshDataFromBlockchain(adminID = floGlobals.adminID, appName = floGlobals.application) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let nodes, assets = new Set(), let nodes, assets, tags, lastTx;
tags = new Set(),
lastTx;
try { try {
nodes = JSON.parse(localStorage.getItem('exchange-nodes')); nodes = JSON.parse(localStorage.getItem('exchange-nodes'));
assets = new Set((localStorage.getItem('exchange-assets') || "").split(',')); assets = new Set((localStorage.getItem('exchange-assets') || "").split(','));