Skip to content

Commit

Permalink
chore: use updated method name
Browse files Browse the repository at this point in the history
  • Loading branch information
devceline committed May 6, 2024
1 parent 02dce15 commit c0fda22
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
19 changes: 15 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/notify-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@walletconnect/cacao": "1.0.2",
"@walletconnect/core": "2.12.2",
"@walletconnect/did-jwt": "2.0.1",
"@walletconnect/identity-keys": "2.1.0-4f45f75",
"@walletconnect/identity-keys": "2.1.0",
"@walletconnect/jsonrpc-utils": "1.0.7",
"@walletconnect/time": "1.0.2",
"@walletconnect/utils": "2.12.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/notify-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ export class NotifyClient extends INotifyClient {
}
};

public prepareRegistrationViaRecaps: INotifyClient["prepareRegistrationViaRecaps"] =
public prepareRegistrationWithRecaps: INotifyClient["prepareRegistrationWithRecaps"] =
(params) => {
try {
return this.engine.prepareRegistrationViaRecaps(params);
return this.engine.prepareRegistrationWithRecaps(params);
} catch (error: any) {
this.logger.error(error.message);
throw error;
Expand Down
4 changes: 2 additions & 2 deletions packages/notify-client/src/controllers/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ export class NotifyEngine extends INotifyEngine {
return this.finishedInitialLoad;
};

public prepareRegistrationViaRecaps: INotifyEngine["prepareRegistrationViaRecaps"] =
public prepareRegistrationWithRecaps: INotifyEngine["prepareRegistrationWithRecaps"] =
async (params) => {
const baseRegisterParams =
await this.client.identityKeys.prepareRegistrationViaRecaps({
await this.client.identityKeys.prepareRegistrationWithRecaps({
domain: params.domain,
recapObject: {
att: {
Expand Down
2 changes: 1 addition & 1 deletion packages/notify-client/src/types/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export abstract class INotifyClient {
// ---------- Public Methods ------------------------------------------------------- //

public abstract isRegistered: INotifyEngine["isRegistered"];
public abstract prepareRegistrationViaRecaps: INotifyEngine["prepareRegistrationViaRecaps"];
public abstract prepareRegistrationWithRecaps: INotifyEngine["prepareRegistrationWithRecaps"];
public abstract prepareRegistration: INotifyEngine["prepareRegistration"];
public abstract register: INotifyEngine["register"];
public abstract unregister: INotifyEngine["unregister"];
Expand Down
4 changes: 2 additions & 2 deletions packages/notify-client/src/types/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export abstract class INotifyEngine {

public abstract hasFinishedInitialLoad(): boolean;

public abstract prepareRegistrationViaRecaps(params: {
public abstract prepareRegistrationWithRecaps(params: {
domain: string;
allApps?: boolean;
}): Promise<
Awaited<ReturnType<IdentityKeys["prepareRegistrationViaRecaps"]>> & {
Awaited<ReturnType<IdentityKeys["prepareRegistrationWithRecaps"]>> & {
allApps: boolean;
}
>;
Expand Down

0 comments on commit c0fda22

Please sign in to comment.