Happening for a few days: Crash report: `Error: invalid BigNumber string (argument="value", value=" 6058", code=INVALID_ARGUMENT, version=bignumber/5.5.0)`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
URL
https://app.uniswap.org/#/swap
swap state
{
"INPUT": {
"currencyId": "ETH"
},
"OUTPUT": {
"currencyId": null
},
"independentField": "INPUT",
"typedValue": "",
"recipient": null
}
Error
Error: invalid BigNumber string (argument="value", value=" 6058", code=INVALID_ARGUMENT, version=bignumber/5.5.0)
Stacktrace
Error: invalid BigNumber string (argument="value", value=" 6058", code=INVALID_ARGUMENT, version=bignumber/5.5.0)
at e.value (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:193072)
at e.value (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:193216)
at e.value (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:193295)
at Function.value (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:348293)
at Mn (https://app.uniswap.org/static/js/main.d22dc713.chunk.js:1:410497)
at Un (https://app.uniswap.org/static/js/main.d22dc713.chunk.js:1:409327)
at https://app.uniswap.org/static/js/main.d22dc713.chunk.js:1:411492
at Bn (https://app.uniswap.org/static/js/main.d22dc713.chunk.js:1:411715)
at oa (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:2953359)
at Ha (https://app.uniswap.org/static/js/35.5699eabb.chunk.js:2:2962926)
Device data
{
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "97.0.4692.71",
"major": "97"
},
"engine": {
"name": "Blink",
"version": "97.0.4692.71"
},
"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 crash at https://app.uniswap.org/#/swap using the reported swap state and browser details, then trace the minified stack back to the relevant repository code. Confirm the reported input no longer crashes the swap flow and add or update a regression test if the relevant test area can be identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100