From ae29cd6b8a91be7fd62cca4a93aaaff72561b36a 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/namadillo/src/atoms/balance/atoms.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/namadillo/src/atoms/balance/atoms.ts b/apps/namadillo/src/atoms/balance/atoms.ts index 58c5e8fd6..24bf1ebe8 100644 --- a/apps/namadillo/src/atoms/balance/atoms.ts +++ b/apps/namadillo/src/atoms/balance/atoms.ts @@ -134,7 +134,7 @@ export const shieldedBalanceAtom = atomWithQuery< // Sdk returns the nam amount as `nam` instead of `namnam` namTokenAddressQuery.data === address ? new BigNumber(amount).shiftedBy(6) - : new BigNumber(amount), + : new BigNumber(amount), })); return shieldedBalance; }, [viewingKeysQuery, tokenAddressesQuery, namTokenAddressQuery]), diff --git a/packages/integrations/src/Namada.ts b/packages/integrations/src/Namada.ts index fe9f39410..89410ae7d 100644 --- a/packages/integrations/src/Namada.ts +++ b/packages/integrations/src/Namada.ts @@ -44,10 +44,8 @@ export default class Namada implements Integration { return await this._namada?.getChain(); } - 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 b41601140..e688f8c8a 100644 --- a/packages/types/src/namada.ts +++ b/packages/types/src/namada.ts @@ -26,7 +26,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;