From ebdfbe75a2ce36a81f7467c564bc8fc17b8b601a Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Tue, 8 Oct 2024 19:06:23 +0100 Subject: [PATCH] test wagmi --- packages/react/package.json | 2 +- packages/react/src/wallet/web3-modal.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 267a44c0..78482c82 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -4,7 +4,7 @@ "description": "React app tools for Mintbase JS SDK", "main": "lib/index.js", "scripts": { - "build": "tsc", + "build": "tsc --noEmitOnError false --skipLibCheck ", "watch": "tsc && tsc --watch & jest --watch --coverage", "lint": "eslint . --fix --ext ts --ext tsx" }, diff --git a/packages/react/src/wallet/web3-modal.ts b/packages/react/src/wallet/web3-modal.ts index be15dfa9..b94e41f9 100644 --- a/packages/react/src/wallet/web3-modal.ts +++ b/packages/react/src/wallet/web3-modal.ts @@ -1,6 +1,7 @@ import { reconnect, http, createConfig } from "@wagmi/core"; import { walletConnect, injected } from "wagmi/connectors"; import { createWeb3Modal } from "@web3modal/wagmi"; +import type { Config } from "@wagmi/core/dist/types/createConfig" const evmWalletChains = { testnet: { @@ -56,7 +57,7 @@ const metadata = { icons: [], }; -export const wagmiConfig = createConfig({ +export const wagmiConfig : Config = createConfig({ chains: [nearChain], transports: { [nearChain.id]: http(),