From a1a1c5ef9f0a8b6d6461ff3198e08abdd2799b4f Mon Sep 17 00:00:00 2001 From: Manuel Wiedenmann Date: Thu, 4 Apr 2019 22:29:37 +0200 Subject: [PATCH] Get contributor by ID Co-Authored-By: skddc --- lib/contracts/contribution.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/contracts/contribution.js b/lib/contracts/contribution.js index 68e0975..dd6fe6d 100644 --- a/lib/contracts/contribution.js +++ b/lib/contracts/contribution.js @@ -27,6 +27,9 @@ class Contribution extends Base { } getByContributorId(contributorId) { + return this.functions.getContributorAddressById(contributorId) + .then(address => this.getByContributorAddress(address)); + } // return this.functions.balanceOf(address) // then(balance => { // count = balance.toNumber();