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:
bumi 2019-06-11 15:45:14 +02:00
parent 810a2eb5fd
commit 107654ecca

View File

@ -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)