From d75f40e76e7564166926329f1eb8ca6659646628 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 25 Apr 2023 19:18:50 +0530 Subject: [PATCH] Bug fixes --- index.html | 14 +++++++++++--- scripts/floBlockchainAPI.js | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index b70e6bc..9c1ed1a 100644 --- a/index.html +++ b/index.html @@ -1887,7 +1887,7 @@ } clone.querySelector('.transaction__receiver').textContent = queriedFloId === sender ? receiver : sender clone.querySelector('.transaction__flo-data').textContent = floData - clone.querySelector('.transaction__link').href = `https://flosight.ranchimall.net/tx/${txid}` + clone.querySelector('.transaction__link').href = `${floBlockchainAPI.current_server}tx/${txid}` clone.querySelector('.transaction__time').textContent = getFormattedTime(time * 1000) return clone }, @@ -2500,7 +2500,15 @@ ` : ''}

${success ? 'Transaction request sent' : 'Transaction failed'}

${success ? 'This might take upto 30 mins to complete and reflect on blockchain.' : result}

- ${success ? html`See transaction on blockchain` : ''} + ${success ? html` +
+ See transaction on blockchain +
+ Transaction ID + +
+
+ ` : ''} `) openPopup('transaction_result_popup') } @@ -2674,7 +2682,7 @@ const depositExpiration = document.getElementById('deposit_expiration').value const depositorPrivateKey = document.getElementById('depositor_private_key').value.trim() const depositorAddress = floCrypto.getFloID(depositorPrivateKey) - const floData = `Deposit ${depositAmount} ${sellingToken}# to ${contractName}@ its FLO address being ${contractAddress}$ with deposit-conditions: (1) expiryTime= ${new Date(depositExpiration).toGMTString()}` + const floData = `Deposit ${depositAmount} ${sellingToken}# to ${contractName}@ its FLO address being ${contractAddress}$ with deposit-conditions: (1) expiryTime= ${new Date(depositExpiration).toString()}` console.log(floData) buttonLoader('deposit_button', true) floTokenAPI.getBalance(depositorAddress, sellingToken).then(balance => { diff --git a/scripts/floBlockchainAPI.js b/scripts/floBlockchainAPI.js index cfb7ba8..1d8a751 100644 --- a/scripts/floBlockchainAPI.js +++ b/scripts/floBlockchainAPI.js @@ -6,8 +6,8 @@ const DEFAULT = { blockchain: floGlobals.blockchain, apiURL: { - FLO: ['https://flosight.duckdns.org/', 'https://flosight.ranchimall.net/'], - FLO_TEST: ['https://testnet-flosight.duckdns.org', 'https://testnet.flocha.in/'] + FLO: ['https://flosight.ranchimall.net/'], + FLO_TEST: ['https://flosight-testnet.ranchimall.net/'] }, sendAmt: 0.001, fee: 0.0005,