-
-
- Connect Wallet
-
+
+
+
+ {{ connector.name }}
+
+
{
});
onCleanup(unwatch);
});
+
+const getConnectorIconName = (connectorId: string): string => {
+ switch (connectorId) {
+ case 'io.rabby':
+ return 'svguse:icons.svg#rabby';
+ case 'io.metamask':
+ return 'svguse:icons.svg#metamask';
+ case 'walletConnect':
+ return 'svguse:icons.svg#walletConnect';
+ default:
+ return 'svguse:icons.svg#wallet';
+ }
+};
diff --git a/src/config/wagmi.ts b/src/config/wagmi.ts
index 4df37ad..44fffb0 100644
--- a/src/config/wagmi.ts
+++ b/src/config/wagmi.ts
@@ -1,10 +1,14 @@
import { createConfig, http } from '@wagmi/vue';
import { base, baseSepolia } from '@wagmi/vue/chains';
-import { injected } from '@wagmi/connectors';
+import { walletConnect } from '@wagmi/vue/connectors';
export const config = createConfig({
chains: [base, baseSepolia],
- connectors: [injected()],
+ connectors: [
+ walletConnect({
+ projectId: process.env.WALLET_CONNECT_PROJECT_ID!,
+ }),
+ ],
transports: {
[base.id]: http(),
[baseSepolia.id]: http(),