Crash report: `Error: Unsupported chain ID`
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
URL
swap state
{
"INPUT": {
"currencyId": "ETH"
},
"OUTPUT": {
"currencyId": "0x239Dc02A28a0774738463E06245544a72745d5c5"
},
"independentField": "INPUT",
"typedValue": "0.000821",
"recipient": null
}
Error
Error: Unsupported chain ID
Stacktrace
Error: Unsupported chain ID
at n.get (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:145646)
at Wi (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:147696)
at mo (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:154006)
at Oo (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:154634)
at Oc (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:186914)
at vS (https://app.uniswap.org/static/js/main.da1bd560.chunk.js:1:747529)
at ua (https://app.uniswap.org/static/js/35.8cc8582a.chunk.js:2:1348185)
at Va (https://app.uniswap.org/static/js/35.8cc8582a.chunk.js:2:1357752)
at $u (https://app.uniswap.org/static/js/35.8cc8582a.chunk.js:2:1401476)
at Cs (https://app.uniswap.org/static/js/35.8cc8582a.chunk.js:2:1387726)
Device data
{
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "95.0.4638.69",
"major": "95"
},
"engine": {
"name": "Blink",
"version": "95.0.4638.69"
},
"os": {
"name": "Windows",
"version": "10"
},
"device": {},
"cpu": {
"architecture": "amd64"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the swap URL with the provided state and browser details, then inspect the reported stack frames in static/js/main.da1bd560.chunk.js and static/js/35.8cc8582a.chunk.js. Trace which chain ID is being handled and confirm the swap no longer crashes with “Unsupported chain ID” for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100