From be8ecd6c4fcec70073c2c94f99923523ccddb57a Mon Sep 17 00:00:00 2001 From: "Justin R. Evans" Date: Wed, 27 Nov 2024 05:31:51 -0500 Subject: [PATCH] fix: clean-up --- apps/extension/src/Approvals/ApproveConnection.tsx | 1 + apps/extension/src/background/approvals/service.ts | 2 +- packages/integrations/src/Namada.ts | 6 ++---- packages/types/src/namada.ts | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/extension/src/Approvals/ApproveConnection.tsx b/apps/extension/src/Approvals/ApproveConnection.tsx index fbf1d69ba..6fa07369d 100644 --- a/apps/extension/src/Approvals/ApproveConnection.tsx +++ b/apps/extension/src/Approvals/ApproveConnection.tsx @@ -34,6 +34,7 @@ export const ApproveConnection: React.FC = () => { Approve connection for {interfaceOrigin} {chainId && ( <> + {" "} and enable signing for {chainId} )} diff --git a/apps/extension/src/background/approvals/service.ts b/apps/extension/src/background/approvals/service.ts index 181a7f372..3383e3e70 100644 --- a/apps/extension/src/background/approvals/service.ts +++ b/apps/extension/src/background/approvals/service.ts @@ -193,7 +193,7 @@ export class ApprovalsService { (await this.localStorage.getApprovedOrigins()) || []; if (chainId) { - const { chainId: currentChainId } = await this.chainService.getChain(); + const currentChainId = await this.chainService.getChain(); if (chainId !== currentChainId) { return false; } diff --git a/packages/integrations/src/Namada.ts b/packages/integrations/src/Namada.ts index 8cb2d1ac4..1e31a9212 100644 --- a/packages/integrations/src/Namada.ts +++ b/packages/integrations/src/Namada.ts @@ -40,10 +40,8 @@ export default class Namada implements Integration { return await this._namada?.isConnected(); } - public async accounts( - chainId?: string - ): Promise { - return await this._namada?.accounts(chainId); + public async accounts(): Promise { + return await this._namada?.accounts(); } public async defaultAccount(): Promise { diff --git a/packages/types/src/namada.ts b/packages/types/src/namada.ts index ba7270567..7c2ac2458 100644 --- a/packages/types/src/namada.ts +++ b/packages/types/src/namada.ts @@ -25,7 +25,7 @@ export type BalancesProps = { }; export interface Namada { - accounts(chainId?: string): Promise; + accounts(): Promise; connect(chainId?: string): Promise; disconnect(chainId?: string): Promise; isConnected(chainId?: string): Promise;