Listen to tx status of submitted reimbursements

This commit is contained in:
2020-10-09 14:29:53 +02:00
parent 5d4fb1c423
commit 4ab5c3c372
+6
View File
@@ -590,6 +590,12 @@ export default Service.extend({
confirmedAt: this.currentBlock + 40320 confirmedAt: this.currentBlock + 40320
}); });
this.reimbursements.pushObject(reimbursement); this.reimbursements.pushObject(reimbursement);
// Listen to tx mining/execution status
data.wait()
.then(d => console.debug('[kredits] tx successful', d))
.catch(e => console.log('[kredits] tx error', e));
return reimbursement; return reimbursement;
}); });
}, },