*Update register to use loadBound

This commit is contained in:
Derrick Hammer 2023-02-19 16:27:24 -05:00
parent 91b1c89bc4
commit 096da60801
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,10 @@ import { Client, factory } from "@lumeweb/libkernel-universal";
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
export class DnsClient extends Client {
public async register(): Promise<void> {
return this.callModuleReturn("register");
public async register(module: string): Promise<void> {
const bag = await this.loadBound(module);
const ret = await bag.callModule("register");
this.handleError(ret);
}
public async clear(): Promise<void> {
return this.callModuleReturn("clear");