diff --git a/ibc.html b/ibc.html
index e69c396..8fe6fdd 100644
--- a/ibc.html
+++ b/ibc.html
@@ -89,7 +89,7 @@
IBC DEMO
nodeUrl: 'https://jungle4.api.eosnation.io', //api supporting send_transaction2
txExplorer: 'https://jungle4.eosq.eosnation.io/tx',
name: "jungle4",
- label: "Jungle 4 Testnet",
+ label: "Jungle4 (EOS) Testnet",
proofSocket: "wss://jungle4-ibc.goldenplatform.com",
bridgeContract:"antelopeibc2",
wrapLockContractsArray: ["antelopewlk1", "antelopewlk2", "antelopewlk3", "antelopewlk4"],
@@ -99,7 +99,7 @@ IBC DEMO
nodeUrl: 'https://kylin.api.eosnation.io', //api supporting send_transaction2
txExplorer: 'https://kylin.eosq.eosnation.io/tx',
name: "kylin",
- label: "Kylin Testnet",
+ label: "Kylin (EOS) Testnet",
proofSocket: "wss://kylin-ibc.goldenplatform.com",
bridgeContract:"antelopeibc2",
wrapLockContractsArray: ["antelopewlk1", "antelopewlk2", "antelopewlk3", "antelopewlk4"],
@@ -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];
@@ -560,12 +560,12 @@ IBC DEMO
}
- return pushGurantee(chain, obj, retry_trx_num_blocks); //if waiting for lib
+ return pushGuarantee(chain, obj, retry_trx_num_blocks); //if waiting for lib
}
//Add retry logic and waiting for blocks to send_transaction, to emulate send_transaction2 retry_trx_num_blocks
- const pushGurantee = async (chain, packedTx, retry_trx_num_blocks ) => new Promise(async resolve=>{
+ const pushGuarantee = async (chain, packedTx, retry_trx_num_blocks ) => new Promise(async resolve=>{
let tx;
try{
tx = await $.post(`${chain.nodeUrl}/v1/chain/send_transaction`, JSON.stringify(packedTx));
@@ -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)
@@ -696,4 +696,4 @@ IBC DEMO
.box{ padding:16px; border:1px solid #64646d;margin-top:44px; }
.box > div, #status > div{ display:flex; justify-content: space-between; }
-