This adds a balanceInt value to the contributor data that has the
token balance formatted as full Kredits. (similar to Ether)
any naming suggestions?
This adds a `balanceInt` value to the contributor data that has the
token balance formatted as full Kredits. (similar to Ether)
any naming suggestions?
fsmanuel
(Migrated from github.com)
reviewed 2019-04-19 10:07:00 +00:00
I thought getContributorById already includes the balance. In which case it wouldn't matter what's returned afterwards, as it would already include the formatted balance beforehand.
I thought `getContributorById` already includes the balance. In which case it wouldn't matter what's returned afterwards, as it would already include the formatted balance beforehand.
bumi
(Migrated from github.com)
reviewed 2019-04-19 22:27:04 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This adds a
balanceIntvalue to the contributor data that has thetoken balance formatted as full Kredits. (similar to Ether)
any naming suggestions?
No need for
Promise.resolvebecause everythenreturns a new Promise.return data;should work.Yay!
As this is not a class, but just one formatting function, I'd call the file
format_kreditsand import it asformatKredits().What's the benefit of doing this here instead of before the return in the first
thisabove?I think the convention is a dash for filenames in JS.
👍
formatKredits();catAndMergereturns a promise, so I only can do it in a nextthen, no?I thought
getContributorByIdalready includes the balance. In which case it wouldn't matter what's returned afterwards, as it would already include the formatted balance beforehand.ah, true. before passing it to IPFS. 👍
There's a merge conflict here.
conflict resolved.