From 9df58b7f9a248625d8f4e29228d79ee971a7009e Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Tue, 1 Dec 2020 12:51:33 +0100 Subject: [PATCH] Fix seeds --- config/seeds.js | 2 +- scripts/list-reimbursements.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/seeds.js b/config/seeds.js index 3a75665..2a3517e 100644 --- a/config/seeds.js +++ b/config/seeds.js @@ -41,7 +41,7 @@ const contractCalls = [ { title: 'Server rent', description: 'Dedicated server: andromeda.kosmos.org, April 2020', amount: 61, currency: 'EUR', date: '2020-05-28' }, { title: 'Server rent', description: 'Dedicated server: centaurus.kosmos.org, April 2020', amount: 32, currency: 'EUR', date: '2020-05-28' } ]}, { gasLimit: 300000 }]], - ['Reimbursement', 'add', [{amount: 166800, contributorId: 2, token: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', expenses: [ + ['Reimbursement', 'add', [{amount: 166800, recipientId: 2, token: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', expenses: [ { title: 'Domain kosmos.chat', description: 'Yearly registration fee for domain kosmos.chat', amount: 13.90, currency: 'EUR', date: '2020-05-30' } ]}, { gasLimit: 300000 }]], ]; diff --git a/scripts/list-reimbursements.js b/scripts/list-reimbursements.js index 86a9be4..c46f522 100644 --- a/scripts/list-reimbursements.js +++ b/scripts/list-reimbursements.js @@ -15,7 +15,7 @@ module.exports = async function(callback) { console.log(`Using Reimbursement at: ${kredits.Reimbursement.contract.address}`); const table = new Table({ - head: ['ID', 'Amount', 'Token', 'ContributorId', 'Confirmed?', 'Vetoed?', 'IPFS', 'Expenses'] + head: ['ID', 'Amount', 'Token', 'recipientId', 'Confirmed?', 'Vetoed?', 'IPFS', 'Expenses'] }) try { @@ -31,7 +31,7 @@ module.exports = async function(callback) { r.id.toString(), r.amount.toString(), `${r.token}`, - `${r.contributorId}`, + `${r.recipientId}`, `${confirmed}`, `${r.vetoed}`, `${r.ipfsHash}`,