diff --git a/.github/workflows/check-existing-prs.yml b/.github/workflows/check-existing-prs.yml index d24bcc0..3ba3301 100644 --- a/.github/workflows/check-existing-prs.yml +++ b/.github/workflows/check-existing-prs.yml @@ -92,7 +92,6 @@ jobs: }); const content = Buffer.from(fileData.content, 'base64').toString(); - console.log('File content:', content); let validatorData; try { @@ -102,13 +101,13 @@ jobs: continue; } - if (!validatorData.btc_address) { + if (!validatorData.btcAddress) { console.log(`No BTC address found in ${file.filename}`); continue; } - console.log(`Checking BTC address: ${validatorData.btc_address}`); - const result = await checkBalance(validatorData.btc_address); + console.log(`Checking BTC address: ${validatorData.btcAddress}`); + const result = await checkBalance(validatorData.btcAddress); // Add comment to PR with results await github.rest.issues.createComment({ @@ -116,7 +115,7 @@ jobs: repo: context.repo.repo, issue_number: pr.number, body: `### BTC Balance Check Results for ${file.filename}\n\n` + - `- BTC Address: \`${validatorData.btc_address}\`\n` + + `- BTC Address: \`${validatorData.btcAddress}\`\n` + `- Current Balance: ${result.balance} BTC\n` + `- Required Balance: 1 BTC\n` + `- Status: ${result.hasEnough ? '✅ PASSED' : '❌ FAILED'}`