Crash report: `TypeError: Cannot read property 'chainId' of undefined`
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": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"
},
"OUTPUT": {
"currencyId": "ETH"
},
"typedValue": "",
"independentField": "INPUT",
"recipient": null
}
Error
TypeError: Cannot read property 'chainId' of undefined
Stacktrace
TypeError: Cannot read property 'chainId' of undefined
at https://app.uniswap.org/static/js/main.fd25a520.chunk.js:1:276679
at Object.useMemo (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1197846)
at https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1131634
at zb (https://app.uniswap.org/static/js/main.fd25a520.chunk.js:1:276603)
at ua (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1191881)
at Ku (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1244181)
at Ms (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1231422)
at js (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1231350)
at Ss (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1231213)
at bs (https://app.uniswap.org/static/js/35.d44dca6f.chunk.js:2:1228179)
Device data
{
"ua": "Mozilla/5.0 (Linux; Android 11; SM-A115M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.166 Mobile Safari/537.36 OPR/65.1.3381.61266",
"browser": {
"name": "Opera",
"version": "65.1.3381.61266",
"major": "65"
},
"engine": {
"name": "Blink",
"version": "92.0.4515.166"
},
"os": {
"name": "Android",
"version": "11"
},
"device": {
"vendor": "Samsung",
"model": "SM-A115M",
"type": "mobile"
},
"cpu": {}
}
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
Start by reproducing the crash at the supplied Uniswap swap URL with the recorded INPUT and OUTPUT state. Use the minified stack trace and the swap state to locate the corresponding frontend code; done means this URL no longer throws a TypeError about an undefined chainId.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100