From ad5fe3ae775d582a4a8fcaa42d64d32894b19307 Mon Sep 17 00:00:00 2001 From: Manuel Wiedenmann Date: Thu, 26 Apr 2018 12:41:51 +0200 Subject: [PATCH] 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. --- .gitignore | 3 ++- lib/kredits.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 697f31a..a5adc06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build node_modules -.ganache-db \ No newline at end of file +.ganache-db +.tm_properties diff --git a/lib/kredits.js b/lib/kredits.js index 541d362..941788c 100644 --- a/lib/kredits.js +++ b/lib/kredits.js @@ -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'); } -- 2.25.1