Fix reimbursement handling after creation

This commit is contained in:
2020-10-01 17:23:22 +02:00
parent 361ccb103d
commit 5d4fb1c423
+3 -3
View File
@@ -583,11 +583,11 @@ export default Service.extend({
return this.kredits.Reimbursement.add(attributes, { gasLimit: 300000 })
.then(data => {
console.debug('[kredits] add reimbursement response', data);
const reimbursement = Reimbursement.create(processReimbursementData(data));
const reimbursement = Reimbursement.create(attributes);
reimbursement.setProperties({
contributor: this.contributors.findBy('id', attributes.contributorId),
contributor: this.contributors.findBy('id', attributes.contributorId.toString()),
pendingTx: data,
confirmedAtBlock: this.currentBlock + 40320
confirmedAt: this.currentBlock + 40320
});
this.reimbursements.pushObject(reimbursement);
return reimbursement;