coinbase / coinbase/onchainkit

Support wagmi 3 — remove wagmi/experimental imports

Open
#2,624 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
520
Avg merge
32m
Merged PRs (30d)
2

Description

### Feature Request

OnchainKit 1.1.2 imports from `wagmi/experimental` (in `SwapProvider.js` and `useAwaitCalls.js`), which was removed in wagmi 3. This blocks projects from upgrading to wagmi 3.

```
"./experimental" is not exported under the conditions ["module", "browser", "production", "import"]
from package wagmi (see exports field in wagmi/package.json)
```

### Files importing `wagmi/experimental`

- `dist/connected/components/Connected.js`
- `dist/swap/components/SwapProvider.js` — `useSendCalls`
- `dist/swap/hooks/useAwaitCalls.js` — `useCallsStatus`

### Context

We use OnchainKit for `OnchainKitProvider` and wallet components in a Farcaster mini-app. Wagmi 3 + Farcaster miniapp-wagmi-connector 2.0 are available but we can't upgrade because OnchainKit's `wagmi/experimental` imports fail at build time.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.