Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Fixed bug that returned an empty swap router 02 address for base chain #120

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

dallinlarsen
Copy link
Contributor

I was recieiving an error:
Error: resolver or addr is not configured for ENS name (argument="name", value="", code=INVALID_ARGUMENT, version=contracts/5.7.0)
and tracked it down to this bug. It seems that calling includes() on the array works but chainId in SUPPORTED_CHAINS doesn't.

@jsy1218
Copy link
Member

jsy1218 commented Feb 23, 2024

@dallinlarsen This is helpful. It probably explains the regression in Uniswap/smart-order-router#481. I will give a try in my local, and see if it passes.

@jsy1218
Copy link
Member

jsy1218 commented Feb 23, 2024

FYI tracking purpose, regression was introduced in #112

@jsy1218
Copy link
Member

jsy1218 commented Feb 23, 2024

@dallinlarsen FYI I'm going to merge your change directly, because it helps with the issue Uniswap/smart-order-router#481 (comment). The contribution credit should still be yours.

@jsy1218 jsy1218 merged commit 10d0ad0 into Uniswap:main Feb 23, 2024
5 of 6 checks passed
jsy1218 added a commit that referenced this pull request Feb 23, 2024
#120)

* Updated code to correctly access addresses

* add test to ensure no regression

---------

Co-authored-by: jsy1218 <91580504+jsy1218@users.noreply.github.com>
jsy1218 added a commit that referenced this pull request Feb 23, 2024
* fix: add correct addresses for sepolia

* Fixed bug that returned an empty swap router 02 address for base chain (#120)

* Updated code to correctly access addresses

* add test to ensure no regression

---------

Co-authored-by: jsy1218 <91580504+jsy1218@users.noreply.github.com>

* Fix code style issues with Prettier

* enhance testing coverage

* Fix code style issues with Prettier

---------

Co-authored-by: dallinlarsen <56076097+dallinlarsen@users.noreply.github.com>
Co-authored-by: jsy1218 <91580504+jsy1218@users.noreply.github.com>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
@dallinlarsen dallinlarsen deleted the fix-swap-router-2-address-by-chain branch February 23, 2024 06:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants