Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Nov 13, 2024
1 parent a7f107e commit 62621f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/application/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,12 @@ async function checkCloudAtlasWebsite(ip, port) {

async function extendedInsightTest(url, blockUlr, txUrl) {
const response = await getRequest(url);
const blockUrlAdjusted = blockUlr + response.blocks[0].hash;
const blockUrlAdjusted = blockUlr + response.data.blocks[0].hash;
const responseB = await getRequest(blockUrlAdjusted);
const { txid } = responseB.txs[0];
const { txid } = responseB.data.txs[0];
const adjustedUrlTx = txUrl + txid;
const responseC = await getRequest(adjustedUrlTx);
if (responseC.confirmations < -2) {
if (responseC.data.confirmations < -2) {
return false
}
return true;
Expand Down

0 comments on commit 62621f4

Please sign in to comment.