Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bridge-ui): fix configuredChains.json validation error for localhost setup #16486

Merged
merged 1 commit into from
Mar 20, 2024
Merged

chore(bridge-ui): fix configuredChains.json validation error for localhost setup #16486

merged 1 commit into from
Mar 20, 2024

Conversation

aztecEagle22
Copy link
Contributor

I was setting up the bridge UI to run on localhost and following the steps in the README.md, but I ran into this error when calling pnpm dev:

error when starting dev server:
Error: encoded configuredChains.json is not valid.
    ...
 ELIFECYCLE  Command failed with exit code 1.

I was pretty sure I filled everything out right, like this:

{
  "configuredChains": [
    {
      "167008": {
        "name": "Taiko Katla L2",
        "type": "L2",
        "icon": "",
        "urls": {
          "rpc": "https://rpc.katla.taiko.xyz",
          "explorer": "https://explorer.katla.taiko.xyz/"
        }
      }
    },
    ...
  ]
}

But it wasn't working.

So, I checked the schema in config/schemas/configuredChains.schema.json, made my config match it, and it started working. Turns out, there was this commit: d6ef79e that changed the schema but didn't update the sample config, which is why I was getting that error about configuredChains.json being invalid after filling it out.

@dantaik dantaik added this pull request to the merge queue Mar 20, 2024
Merged via the queue into taikoxyz:main with commit 526beaa Mar 20, 2024
4 checks passed
Copy link

gitpoap-bot bot commented Mar 20, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 Taiko Contributor:

GitPOAP: 2024 Taiko Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants