*Update register to use loadBound
This commit is contained in:
parent
91b1c89bc4
commit
096da60801
|
@ -3,8 +3,10 @@ import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
|
|
||||||
export class DnsClient extends Client {
|
export class DnsClient extends Client {
|
||||||
public async register(): Promise<void> {
|
public async register(module: string): Promise<void> {
|
||||||
return this.callModuleReturn("register");
|
const bag = await this.loadBound(module);
|
||||||
|
const ret = await bag.callModule("register");
|
||||||
|
this.handleError(ret);
|
||||||
}
|
}
|
||||||
public async clear(): Promise<void> {
|
public async clear(): Promise<void> {
|
||||||
return this.callModuleReturn("clear");
|
return this.callModuleReturn("clear");
|
||||||
|
|
Loading…
Reference in New Issue