This moves the Kredits initialization to the instance which allows us to be more flexible with handling contract addresses. Example: var k = new Kredits(provider, signer, {Registry: '0xabc'}); k.init().then((kredits) { ...}); var k = new Kredits(provider, signer, {Contributors: '0xabc'}) k.Contributor.add(...);
7 lines
93 B
JavaScript
7 lines
93 B
JavaScript
const Base = require('./base');
|
|
|
|
class Registry extends Base {
|
|
}
|
|
|
|
module.exports = Registry;
|