fix: use correct SLIP-44 coin type for BNB on Binance chain - #5506
Conversation
When calling reown_getExchanges for BNB on Binance chain (chainId 56), the code was generating the wrong CAIP-19 asset identifier using Ethereum's SLIP-44 coin type (60) instead of BNB's (714). This caused the API to return empty exchanges because there was no asset mapping for slip44:60 on Binance chain. Added EVM_NATIVE_SLIP44_OVERRIDES map to handle chain-specific SLIP-44 coin types for native tokens on BNB chains (56 and 204/opBNB). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
10 Skipped Deployments
|
|
Visual Regression Test Results ✅ PassedChromatic Build: https://www.chromatic.com/build?appId=6493191bf4b10fed8ca7353f&number=719 👉 Please review the visual changes in Chromatic and accept or reject them. |
📦 Bundle Size Check✅ All bundles are within size limits 📊 View detailed bundle sizes> @reown/appkit-monorepo@1.7.1 size /home/runner/work/appkit/appkit > size-limit |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
Move comments above code lines instead of inline to satisfy no-inline-comments and line-comment-position ESLint rules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
eip155:56/slip44:60(Ethereum) toeip155:56/slip44:714(BNB)Problem
When calling
reown_getExchangesfor BNB on Binance chain, the API returned empty exchanges because the code generatedslip44:60(Ethereum's coin type) instead ofslip44:714(BNB's coin type).Solution
Added
EVM_NATIVE_SLIP44_OVERRIDESmap to handle chain-specific SLIP-44 coin types for native tokens. UpdatedformatCaip19Assetin bothExchangeUtil.tsandAssetUtil.tsto use the override map.Test plan
🤖 Generated with Claude Code