Skip to content

Add ERC-6492 unwrapping to exact/upto permit2 and batch-settlement#2352

Merged
phdargen merged 4 commits into
x402-foundation:mainfrom
phdargen:batch-settlement-smartwallet-fix
May 19, 2026
Merged

Add ERC-6492 unwrapping to exact/upto permit2 and batch-settlement#2352
phdargen merged 4 commits into
x402-foundation:mainfrom
phdargen:batch-settlement-smartwallet-fix

Conversation

@phdargen
Copy link
Copy Markdown
Collaborator

Description

Base account smart wallet appends Erc6492 info even for already deployed smart accounts.
Exact EVM unwraps ERC-6492 signatures before the onchain USDC transferWithAuthorization call. Batch settlement was verifying the wrapped smart-wallet signature successfully, then passing that wrapped signature into receiveWithAuthorization, which fails during onchain simulation.

-> unwrap signatures with parseErc6492Signature before passing them into onchain calldata
-> also applied to permit2 flows in exact/upto

Tests

Checklist

  • I have formatted and linted my code
  • All new and existing tests pass
  • My commits are signed (required for merge) -- you may need to rebase if you initially pushed unsigned commits
  • I added a changelog fragment for user-facing changes (docs-only changes can skip)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

@phdargen is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added typescript go sdk Changes to core v2 packages python labels May 18, 2026
@phdargen phdargen marked this pull request as draft May 18, 2026 13:30
@phdargen phdargen marked this pull request as ready for review May 18, 2026 16:21
@phdargen phdargen merged commit a242149 into x402-foundation:main May 19, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go python sdk Changes to core v2 packages typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants