Add metadata row to contributor list

Contains links to Ethereum address and IPFS content.
This commit is contained in:
2017-02-19 10:30:56 +08:00
parent e7fa188797
commit 0a2f44cec8
3 changed files with 71 additions and 8 deletions
+2 -1
View File
@@ -65,11 +65,12 @@ export default Ember.Service.extend({
this.getValueFromContract('contributorAddresses', i).then(address => {
this.getValueFromContract('contributors', address).then(person => {
this.getValueFromContract('balanceOf', address).then(balance => {
console.debug('person', person);
let contributor = Contributor.create({
address: address,
github_username: person[1],
github_uid: person[0],
ipfsHash: person[3],
ipfsHash: person[2],
kredits: balance.toNumber(),
isCurrentUser: this.get('currentUserAccounts').includes(address)
});