We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbcbd1 commit d664647Copy full SHA for d664647
.changeset/rich-emus-watch.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+adapters(viem): explicitly type walletClient return type
packages/thirdweb/src/adapters/viem.ts
@@ -170,7 +170,7 @@ type ToViemWalletClientOptions = {
170
chain: Chain;
171
};
172
173
-function toViemWalletClient(options: ToViemWalletClientOptions) {
+function toViemWalletClient(options: ToViemWalletClientOptions): WalletClient {
174
const { account, chain, client } = options;
175
if (!account) {
176
throw new Error("Wallet not connected.");
0 commit comments