Skip to content

Commit

Permalink
Merge pull request #15 from zikriya/develop
Browse files Browse the repository at this point in the history
getTransactionReceipt called at on complete to get the latest reciept
  • Loading branch information
zikriya authored Mar 14, 2023
2 parents b15b567 + ac8d7ed commit f97a905
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const worker = new Worker(
worker.on('completed', async job => {
try {
console.info(`${job.id} has completed!`);
if(job && !job.returnvalue){
console.info(`Get latest receipt`);
job.returnvalue = await web3Service.getTransactionReceipt(job.data.txId, job.data.rpcURL);
}
const decodedData = web3Service.getLogsFromTransactionReceipt(job);
const tx = await web3Service.getTransactionByHash(
job.data.txId,
Expand Down

0 comments on commit f97a905

Please sign in to comment.