From 3127ff6a15f67cf46d3ab12d1f74a7a95c792a56 Mon Sep 17 00:00:00 2001 From: 1231234235234 <43307894+shinygiraffe@users.noreply.github.com> Date: Sun, 26 Jan 2025 17:17:15 -0800 Subject: [PATCH] fix: wallet provider prop & viem dependency Problems: - AbstractWalletProvider's config prop type was incompatible with the constant imported from viem - npm also had resolution conflict errors between the viem imported by the latest agw-client and the one imported by this package Solution - fix prop name - change viem import so it pulls in the latest compatible version --- package.json | 2 +- src/components/NextAbstractWalletProvider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d4becaf..6e9def0 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "wagmi": "2.12.25", - "viem": "2.21.26" + "viem": "^2.21.26" }, "devDependencies": { "@types/node": "20.11.30", diff --git a/src/components/NextAbstractWalletProvider.tsx b/src/components/NextAbstractWalletProvider.tsx index 11c8532..3ef26dd 100644 --- a/src/components/NextAbstractWalletProvider.tsx +++ b/src/components/NextAbstractWalletProvider.tsx @@ -9,7 +9,7 @@ export default function AbstractWalletWrapper({ children: React.ReactNode; }) { return ( - + {children} );