From ec4888ea60651fe2166c56b148d36e8c146b5f31 Mon Sep 17 00:00:00 2001 From: Iris Date: Wed, 7 Aug 2024 14:55:28 +0200 Subject: [PATCH] fix: changes in api --- constants/types.ts | 2 +- hooks/getWalletType.tsx | 4 ++-- services/apiService.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/constants/types.ts b/constants/types.ts index c270040..60808d8 100644 --- a/constants/types.ts +++ b/constants/types.ts @@ -66,7 +66,7 @@ export type SearchResult = { error?: string; }; -export type WalletType = "Argent" | "Braavos"; +export type WalletType = "argent" | "braavos"; export type WalletState = { id: string; diff --git a/hooks/getWalletType.tsx b/hooks/getWalletType.tsx index 1f76d6e..2fe995a 100644 --- a/hooks/getWalletType.tsx +++ b/hooks/getWalletType.tsx @@ -27,9 +27,9 @@ export default function getWalletType(network?: NetworkType, address?: string) { connectedWallet.isConnected ) { if (connectedWallet.id.includes("argent")) { - setWalletType("Argent"); + setWalletType("argent"); } else if (connectedWallet.id === "braavos") { - setWalletType("Braavos"); + setWalletType("braavos"); } } }); diff --git a/services/apiService.ts b/services/apiService.ts index f5b3378..663bedc 100644 --- a/services/apiService.ts +++ b/services/apiService.ts @@ -3,7 +3,6 @@ import { GetDeploymentDataResult, WalletType, } from "@/constants/types"; -import { Wallet } from "ethers"; import { Signature, stark } from "starknet"; const baseurl = process.env.NEXT_PUBLIC_ETH_BUTTON_API;