Get contributor by ID

Co-Authored-By: skddc <sebastian@kip.pe>
This commit is contained in:
fsmanuel 2019-04-04 22:29:37 +02:00 committed by GitHub
parent e4c3d9a468
commit a1a1c5ef9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,9 @@ class Contribution extends Base {
} }
getByContributorId(contributorId) { getByContributorId(contributorId) {
return this.functions.getContributorAddressById(contributorId)
.then(address => this.getByContributorAddress(address));
}
// return this.functions.balanceOf(address) // return this.functions.balanceOf(address)
// then(balance => { // then(balance => {
// count = balance.toNumber(); // count = balance.toNumber();