diff --git a/src/index.ts b/src/index.ts index ba01b3b..65a0e1b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,11 +15,8 @@ export class NetworkRegistryClient extends Client { return this.callModuleReturn("getNetworkTypes", { module }); } - public async registerNetwork(module: string) { - const bag = this.getBound(module); - - const ret = await bag.callModule("register"); - this.handleError(ret); + public async registerNetwork(types: string[]) { + return this.callModuleReturn("registerNetwork", { types }); } }