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:
parent
418785059c
commit
ad5fe3ae77
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build
|
||||
node_modules
|
||||
.ganache-db
|
||||
.ganache-db
|
||||
.tm_properties
|
||||
|
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user