Skip to content

feat: web3 deps update - #1281

Merged
technophile-04 merged 9 commits into
mainfrom
deps-update-web3
Jul 29, 2026
Merged

feat: web3 deps update#1281
technophile-04 merged 9 commits into
mainfrom
deps-update-web3

Conversation

@rin-st

@rin-st rin-st commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

Part 2 of #1279

Updates web3 dependencies in packages/nextjs:

  • viem 2.39.0 → 2.48.4
  • @rainbow-me/rainbowkit 2.2.9 → 2.2.10
  • wagmi stays on 2.19.5

Why wagmi stays on v2

Wagmi v3 is out, but RainbowKit doesn't support it yet — it still pins wagmi v2. Bumping wagmi alone breaks the connector types.

Note: ConnectKit and Reown AppKit (ex-Web3Modal) also haven't shipped wagmi v3 support, so swapping the kit wouldn't unblock the upgrade.

Code changes from the viem bump

  • publicClient.getBytecode(...)publicClient.getCode(...) (renamed in viem) in ContractTabs.tsx and useDeployedContractInfo.ts
  • Enabled @typescript-eslint/no-deprecated in eslint.config.mjs to catch future viem/wagmi deprecations early
  • Fixed stale JSDoc useContractReaduseReadContract in useScaffoldReadContract.ts

Test plan

  • yarn next:check-types clean
  • yarn next:lint clean
  • yarn start + connect via MetaMask, WalletConnect, burner — read/write contract works
  • Block explorer detects EOA vs contract correctly (verifies getCode swap)

Waits for

⚠️ Before merge change burner-connector dependency. in package.json

@rin-st
rin-st requested a review from technophile-04 May 4, 2026 14:08
@rin-st
rin-st changed the base branch from main to deps-update-next-part-1 May 5, 2026 07:49
Base automatically changed from deps-update-next-part-1 to main May 15, 2026 10:25
@rin-st
rin-st marked this pull request as ready for review May 20, 2026 06:21
@rin-st

rin-st commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

updated burner-connector version. Versions of viem/wagmi/rainbowkit here are the same as in burner-connector

@rin-st

rin-st commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

fixed lint warnings:

  • deprecated ArrowLeftOnRectangleIcon -> ArrowLeftEndOnRectangleIcon (same visual)
  • rainbowkit deprecated baseAccount -> base
  • types: React.FormEvent -> React.SubmitEvent

@technophile-04

Copy link
Copy Markdown
Collaborator

Thank Rinat!

@technophile-04
technophile-04 merged commit 4b70535 into main Jul 29, 2026
1 check passed
@technophile-04
technophile-04 deleted the deps-update-web3 branch July 29, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants