From 89fd47314ce3ae69a4d22b7ad429a88c9717c2d7 Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Wed, 14 Aug 2024 13:39:30 +0200 Subject: [PATCH] fix: rename --- .../WalletConnectCommunicationClient.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/beacon-transport-walletconnect/src/communication-client/WalletConnectCommunicationClient.ts b/packages/beacon-transport-walletconnect/src/communication-client/WalletConnectCommunicationClient.ts index 2c43bc887..f0a9c6dd1 100644 --- a/packages/beacon-transport-walletconnect/src/communication-client/WalletConnectCommunicationClient.ts +++ b/packages/beacon-transport-walletconnect/src/communication-client/WalletConnectCommunicationClient.ts @@ -383,7 +383,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient { throw new MissingRequiredScope(PermissionScopeMethods.SIGN) } const network = this.getActiveNetwork() - const account = await this.getPKH() + const account = await this.getAccountOrPK() this.validateNetworkAndAccount(network, account) this.checkWalletReadiness(this.getTopicFromSession(session)) @@ -445,7 +445,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient { throw new MissingRequiredScope(PermissionScopeMethods.OPERATION_REQUEST) } const network = this.getActiveNetwork() - const account = await this.getPKH() + const account = await this.getAccountOrPK() this.validateNetworkAndAccount(network, account) this.checkWalletReadiness(this.getTopicFromSession(session)) @@ -1330,10 +1330,10 @@ export class WalletConnectCommunicationClient extends CommunicationClient { } /** - * @description Access the public key hash of the active account + * @description Access the public key hash (or public key) of the active account * @error ActiveAccountUnspecified thrown when there are multiple Tezos account in the session and none is set as the active one */ - async getPKH() { + async getAccountOrPK() { if (!this.activeAccountOrPbk) { this.getSession() throw new ActiveAccountUnspecified()