KOSASIH / pi-nexus-autonomous-banking-network

Should not have unused variables JS-0128
Bug risk
Major
1 occurrence in this check
'receipt' is defined but never used
36    .signTransaction(tx, YOUR_PRIVATE_KEY)
37    .then((signedTx) => web3.eth.sendSignedTransaction(signedTx.rawTransaction))
38    .on('transactionHash', (hash) => console.log(`Transaction hash: ${hash}`))
39    .on('confirmation', (confirmationNumber, receipt) => {40      console.log(`Confirmation number: ${confirmationNumber}`);
41      loanStatusDiv.innerHTML = 'Loan repayment successful!';
42    });