Add Contributors alias for Contributor

Because the contract is named `Contributors` we alias to `Contributor` which will become the new contract name if we manage to change it.
This commit is contained in:
fsmanuel 2018-04-26 12:41:51 +02:00
parent 418785059c
commit ad5fe3ae77
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
build
node_modules
.ganache-db
.ganache-db
.tm_properties

View File

@ -63,6 +63,11 @@ class Kredits {
return this.contractFor('contributors');
}
get Contributors() {
console.log('Contributors is deprecated use Contributor instead');
return this.Contributor;
}
get Operator() {
return this.contractFor('operator');
}