diff --git a/ibc.html b/ibc.html index 728aea5..8fe6fdd 100644 --- a/ibc.html +++ b/ibc.html @@ -133,7 +133,7 @@

IBC DEMO

fetchProgress+=50; $('.progressDiv').last().html(fetchProgress+"%"); let groupedResults = []; - while(initialResults.length > 2) groupedResults.push(initialResults.splice(0, 2)); + while(initialResults.length >= 2) groupedResults.push(initialResults.splice(0, 2)); let tokenPromises = [] for (var result of groupedResults){ const global = result[0][0]; @@ -622,7 +622,7 @@

IBC DEMO

ws.addEventListener('message', (event) => { const res = JSON.parse(event.data); console.log("res",res) - const firhoseTx = res.txs.find(r=>r.find(s=>s.transactionId === transaction_id)); + const firhoseTx = res.txs.find(r=>r.find(s=>s.transactionId === transaction_id.toUpperCase())); console.log("firhoseTx",firhoseTx) const firehoseEmitxfer = firhoseTx.find(r=>r.action.name==='emitxfer'); console.log("firehoseEmitxfer",firehoseEmitxfer)