Skip to content

Support XDC-prefixed recipient addresses#44

Draft
L03TJ3 with Copilot wants to merge 2 commits into
mainfrom
copilot/support-xdc-prefixed-addresses
Draft

Support XDC-prefixed recipient addresses#44
L03TJ3 with Copilot wants to merge 2 commits into
mainfrom
copilot/support-xdc-prefixed-addresses

Conversation

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

XDC wallets commonly expose EVM addresses with an xdc prefix. These recipients were rejected by send validation and could leave transaction actions disabled.

  • XDC address handling

    • Add chain-aware validation for xdc-prefixed addresses on XDC only.
    • Normalize valid XDC addresses to canonical 0x format before calldata, gas estimation, and broadcast.
  • Send UI

    • Apply XDC-aware validation when entering a recipient and enabling transaction review.
  • Coverage

    • Add unit tests for valid normalization, invalid XDC input, and rejection on non-XDC chains.
normalizeEvmAddress(
  "xdcEC2136843a983885AebF2feB3931F73A8eBEe50c",
  XDC_CHAIN_ID,
)
// => "0xEC2136843a983885AebF2feB3931F73A8eBEe50c"

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
good-wallet-v2 Error Error Jul 23, 2026 6:45am

Request Review

Copilot AI changed the title [WIP] Update address validation to accept xdc-prefixed addresses Support XDC-prefixed recipient addresses Jul 23, 2026
Copilot AI requested a review from L03TJ3 July 23, 2026 06:44
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.

Support xdc-prefixed addresses as valid format

2 participants