Rename recipientId to contributorId in proposals

This commit is contained in:
2018-04-15 19:02:35 +02:00
parent 7b5cea3613
commit 8aa941e704
7 changed files with 14 additions and 12 deletions
+2
View File
@@ -1,4 +1,5 @@
import computed from 'ember-computed';
import ethers from 'npm:ethers';
export default function(dependentKey, converterMethod) {
return computed(dependentKey, {
@@ -6,6 +7,7 @@ export default function(dependentKey, converterMethod) {
return this.get(dependentKey)[converterMethod]();
},
set (key, value) {
value = ethers.utils.bigNumberify(value);
this.set(dependentKey, value);
return value[converterMethod]();
}