Skip to content

Conversation

@geeknees
Copy link
Member

@geeknees geeknees commented Jun 7, 2025

Summary

  • upgrade wagmi to v1 and add viem dependency
  • update provider config to WagmiConfig
  • migrate hooks and pages to new wagmi APIs
  • update contract addresses utility for wagmi v1
  • fix jest config for ESM packages

Testing

  • yarn lint
  • yarn jest (fails: SyntaxError from ESM modules)

https://chatgpt.com/codex/tasks/task_e_6841dbcceea48329a9942e9da189094d

Copilot AI review requested due to automatic review settings June 7, 2025 03:57
@vercel
Copy link

vercel bot commented Jun 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
henkaku-omise ❌ Failed (Inspect) Jun 7, 2025 3:58am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades wagmi to v1 by updating the provider configuration, migrating hooks and pages to use the new wagmi APIs, and adding the viem dependency.

  • Updated connect and network APIs in pages (claim, badges, [id])
  • Refactored hooks to follow the new wagmi useContract* API patterns
  • Revised provider configuration in _app.tsx and updated package.json dependencies

Reviewed Changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pages/claim/index.tsx Updated the connect call to match wagmi v1 API requirements
pages/badges/index.ts and [id].tsx Replaced deprecated activeChain with chain to obtain network id
pages/_app.tsx Migrated from Provider to WagmiConfig with updated chain setup
package.json Upgraded wagmi version and added viem dependency
hooks/* Converted useContract* calls to use object syntax per new API
components/metaMask/SwitchNetworkAlert.tsx Adjusted network switching to use new useSwitchNetwork hook
Comments suppressed due to low confidence (1)

hooks/useKoukanCliamToken.ts:6

  • The file and function name 'useKoukanCliamToken' appear to contain a typo ('Cliam' instead of 'Claim'). Consider renaming the file and function to 'useKoukanClaimToken' for clarity and consistency.
export const useKoukanClaimToken = (contract: string, address?: string) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants