From 89261d039a2f92af20e78854dd2cf67b4ae97b3c Mon Sep 17 00:00:00 2001 From: bumi Date: Thu, 26 Apr 2018 02:42:31 +0200 Subject: [PATCH] Fix contributor id lookup for proposal creation script --- scripts/add-proposal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add-proposal.js b/scripts/add-proposal.js index 57c0a83..162161d 100644 --- a/scripts/add-proposal.js +++ b/scripts/add-proposal.js @@ -19,7 +19,7 @@ module.exports = function(callback) { if (contributor.length < 5) { contributorId = contributor; } else { - contributorId = await contributors.getContributorIdByAddress(contributor); + contributorId = await kredits.Contributor.functions.getContributorIdByAddress(contributor); } console.log(`Creating a proposal for contributor ID #${contributorId}`);