Skip to content

fix(web): improve wallet connection for MetaMask and mobile - #13

Open
emdin wants to merge 3 commits into
igralabsfrom
fix/update-lockfile
Open

emdin wants to merge 3 commits into
igralabsfrom
fix/update-lockfile

Conversation

@emdin

@emdin emdin commented Jun 9, 2026

Copy link
Copy Markdown

Summary

  • Put app's target chain (Igra Network) first in wagmi config so wallets default to it on connect instead of Ethereum mainnet
  • Replace dead "Error Chain" button with clickable "Switch Network" that prompts wallet_switchEthereumChain
  • Sync lockfile specifier for Next.js pin (^16.1.0 → 16.1.0)
  • Fix custom logo dimensions for consistency across desktop sidebar and mobile header

Test plan

  • Connect with MetaMask on desktop — should request Igra Network, not mainnet
  • Connect with MetaMask on mobile browser — same
  • If wallet is on wrong chain, "Switch Network" button appears and prompts chain switch on click
  • Connect with Rabby — should work as before
  • SIWE sign-in flow completes after wallet connects

🤖 Generated with Claude Code

Put the app's target chain first in wagmi config so wallets default to
it on connect instead of mainnet. Replace the dead "Error Chain" button
with a "Switch Network" action that prompts the wallet to switch.
Also syncs lockfile specifier for Next.js pin and fixes custom logo
dimensions for consistency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@emdin
emdin force-pushed the fix/update-lockfile branch 4 times, most recently from 3205b57 to 638d0d0 Compare June 9, 2026 15:05
pnpm 11 errors on packages with build scripts unless explicitly allowed.
Create a temporary package.json with onlyBuiltDependencies wildcard to
permit prisma's engine download in the runner stage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@emdin
emdin force-pushed the fix/update-lockfile branch from 638d0d0 to c803655 Compare June 9, 2026 15:17
…k-based governors

The BlockNumber clock mode path was returning the proposal creation
timestamp as voteStart, ignoring the voting delay entirely. It also
lacked the voteStart block input, so the voting period duration was
wrong (48h displayed instead of 36.4h for Igra's config).

Now both voteStart and voteEnd are estimated from their respective
block distances × blockInterval. Also fixes the Timestamp mode to
use the actual voteStart value instead of creation time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant