Skip to content

Commit

Permalink
wallet provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarkhatov committed Dec 17, 2024
1 parent e0eb4b7 commit 2c074e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/wallets/bbn/keplr/index.ts
Original file line number Diff line number Diff line change
@@ -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<IBBNProvider, BBNConfig> = {
id: "keplr",
name: "Keplr",
name: WALLET_PROVIDER_NAME,
icon: logo,
docs: "https://www.keplr.app/",
wallet: "keplr",
Expand Down
4 changes: 3 additions & 1 deletion src/core/wallets/bbn/keplr/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -82,7 +84,7 @@ export class KeplrProvider implements IBBNProvider {
}

async getWalletProviderName(): Promise<string> {
return "Keplr";
return WALLET_PROVIDER_NAME;
}

async getWalletProviderIcon(): Promise<string> {
Expand Down

0 comments on commit 2c074e2

Please sign in to comment.