From 340635513c8224270b785a4d56758de540169b27 Mon Sep 17 00:00:00 2001 From: RanchiMall Dev Date: Fri, 19 Jul 2024 12:15:01 +0000 Subject: [PATCH] Workflow updating files of ribc --- ribc/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ribc/index.html b/ribc/index.html index 6447194..48285ac 100644 --- a/ribc/index.html +++ b/ribc/index.html @@ -4202,10 +4202,15 @@ .readAllTxs("FThgnJLcuStugLc24FJQggmp2WgaZjrBSn") .then(({ items }) => { items.forEach((tx) => { - // Ensure tx.vout exists and has the expected structure + // Errorfix 1 - Ensure tx.vout exists and has the expected structure if (!tx.vout || !tx.vout[0] || !tx.vout[0].scriptPubKey || !tx.vout[0].scriptPubKey.addresses) return; const floId = tx.vout[0].scriptPubKey.addresses[0]; + + //Errorfix 2 - Making sure FLO ID is in the intern list + const internList = RIBC.getInternList(); + if (!(floId in internList)) return; // check if floId is of an intern + if (!RIBC.getInternList()[floId]) return; // check if floId is of an intern const { txid, floData, time } = tx if (!floGlobals.payments[floId])