From 2c074e20292b1324d9ae3c2a482c41dbd7bd7d93 Mon Sep 17 00:00:00 2001 From: Govard Barkhatov Date: Mon, 16 Dec 2024 21:02:41 +0200 Subject: [PATCH] wallet provider name --- src/core/wallets/bbn/keplr/index.ts | 4 ++-- src/core/wallets/bbn/keplr/provider.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/wallets/bbn/keplr/index.ts b/src/core/wallets/bbn/keplr/index.ts index c271bea..be70be5 100644 --- a/src/core/wallets/bbn/keplr/index.ts +++ b/src/core/wallets/bbn/keplr/index.ts @@ -1,11 +1,11 @@ import { IBBNProvider, Network, type BBNConfig, type WalletMetadata } from "@/core/types"; import logo from "./logo.svg"; -import { KeplrProvider } from "./provider"; +import { KeplrProvider, WALLET_PROVIDER_NAME } from "./provider"; const metadata: WalletMetadata = { id: "keplr", - name: "Keplr", + name: WALLET_PROVIDER_NAME, icon: logo, docs: "https://www.keplr.app/", wallet: "keplr", diff --git a/src/core/wallets/bbn/keplr/provider.ts b/src/core/wallets/bbn/keplr/provider.ts index f9d6e55..3707a1d 100644 --- a/src/core/wallets/bbn/keplr/provider.ts +++ b/src/core/wallets/bbn/keplr/provider.ts @@ -11,6 +11,8 @@ declare global { interface Window extends KeplrWindow {} } +export const WALLET_PROVIDER_NAME = "Keplr"; + export class KeplrProvider implements IBBNProvider { private walletInfo: WalletInfo | undefined; private chainId: string | undefined; @@ -82,7 +84,7 @@ export class KeplrProvider implements IBBNProvider { } async getWalletProviderName(): Promise { - return "Keplr"; + return WALLET_PROVIDER_NAME; } async getWalletProviderIcon(): Promise {