Skip to content

Fix stale token balance reads after Sepolia minting - #1

Draft
mingyech wants to merge 1 commit into
mainfrom
codex/fix-wallet-state-refresh
Draft

Fix stale token balance reads after Sepolia minting#1
mingyech wants to merge 1 commit into
mainfrom
codex/fix-wallet-state-refresh

Conversation

@mingyech

@mingyech mingyech commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

A Sepolia deposit could stop with “the balance is still too low” immediately after its test-token mint succeeded, because MetaMask’s latest token-balance read still reflected the previous block. Read the balance at the mint receipt’s block, verify that block remains canonical and the wallet remains on the configured network, and retry lagging reads for a bounded period without submitting another mint.

Validation: all 193 SDK tests pass, including the actual deposit path with the reproduced 4.992540 → 5.000000 balance transition, lagging reads, reorgs, network changes, invalid receipts, and bounded retry exhaustion. Independent review found no blocking issues. The original error was reproduced in the deployed Sepolia Commercial app and its successful mint was verified on-chain; verification of the patched deployment is in progress.

@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zkapi-ef-collab Ready Ready Preview Sep 9, 2026 10:44pm UTC

Request Review

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