Expose available network IDs
This exposes the network IDs on which kredits is deployed. Helpful to check if the used network is supported.
This commit is contained in:
parent
810a2eb5fd
commit
107654ecca
@ -83,6 +83,10 @@ class Kredits {
|
|||||||
return new Kredits(ethProvider, signer, kreditsOptions);
|
return new Kredits(ethProvider, signer, kreditsOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static availableNetworks () {
|
||||||
|
return Object.keys(DaoAddresses);
|
||||||
|
}
|
||||||
|
|
||||||
get Kernel () {
|
get Kernel () {
|
||||||
let k = this.contractFor('Kernel');
|
let k = this.contractFor('Kernel');
|
||||||
// in case we want to use a special apm (e.g. development vs. production)
|
// in case we want to use a special apm (e.g. development vs. production)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user