diff --git a/app/lib/kredits/contracts/contributor.js b/app/lib/kredits/contracts/contributor.js index 9340eff..5504eee 100644 --- a/app/lib/kredits/contracts/contributor.js +++ b/app/lib/kredits/contracts/contributor.js @@ -53,15 +53,13 @@ export default class Contributor extends Base { Object.assign(attributes, this.decodeIpfsHash(ipfsHash)); return attributes; }) - .then((attributes) => { - let { address, digest, hashFunction, hashSize, isCore } = attributes; - + .then((attr) => { let contributor = [ - address, - digest, - hashFunction, - hashSize, - isCore, + attr.address, + attr.ipfsHash, + attr.hashFunction, + attr.hashSize, + attr.isCore, ]; console.log('[kredits] addContributor', ...contributor); diff --git a/app/lib/kredits/contracts/operator.js b/app/lib/kredits/contracts/operator.js index e0e860c..0adf525 100644 --- a/app/lib/kredits/contracts/operator.js +++ b/app/lib/kredits/contracts/operator.js @@ -56,12 +56,13 @@ export default class Operator extends Base { }) .then((attr) => { let proposal = [ - parseInt(attr.recipientId), - parseInt(attr.amount), + attr.recipientId, + attr.amount, attr.ipfsHash, attr.hashFunction, attr.hashSize, ]; + console.log('[kredits] addProposal', ...proposal); return this.contract.functions.addProposal(...proposal); });