From 1390c91907c79b0c80e6260630fe1a27c586b01a Mon Sep 17 00:00:00 2001 From: sairajzero Date: Wed, 10 May 2023 01:46:36 +0530 Subject: [PATCH] floBlockchainAPI v2.5.6a - minor bug fix: default value for options missing in readAllTxs fn - removed flosight.duckdns.org from apiURL --- floBlockchainAPI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/floBlockchainAPI.js b/floBlockchainAPI.js index d34e3ef..460775b 100644 --- a/floBlockchainAPI.js +++ b/floBlockchainAPI.js @@ -1,4 +1,4 @@ -(function (EXPORTS) { //floBlockchainAPI v2.5.6 +(function (EXPORTS) { //floBlockchainAPI v2.5.6a /* FLO Blockchain Operator to send/receive data from blockchain using API calls*/ 'use strict'; const floBlockchainAPI = EXPORTS; @@ -6,7 +6,7 @@ const DEFAULT = { blockchain: floGlobals.blockchain, apiURL: { - FLO: ['https://flosight.duckdns.org/', 'https://flosight.ranchimall.net/'], + FLO: ['https://flosight.ranchimall.net/'], FLO_TEST: ['https://flosight-testnet.ranchimall.net/'] }, sendAmt: 0.0003, @@ -853,7 +853,7 @@ } //Read All Txs of Address (newest first) - const readAllTxs = floBlockchainAPI.readAllTxs = function (addr, options) { + const readAllTxs = floBlockchainAPI.readAllTxs = function (addr, options = {}) { return new Promise((resolve, reject) => { readTxs(addr, options).then(response => { if (response.incomplete) {