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

[🐛 Bug]: holesky was not found #1231

Open
3 of 4 tasks
abiii-starry opened this issue Oct 15, 2024 · 0 comments
Open
3 of 4 tasks

[🐛 Bug]: holesky was not found #1231

abiii-starry opened this issue Oct 15, 2024 · 0 comments
Labels
bug 🐛 Something isn't working needs triaging ⏳

Comments

@abiii-starry
Copy link

🔎 Have you searched existing issues to avoid duplicates?

  • I have made sure that my issue is not a duplicate.

🧪 Have you tested your code using latest version of Synpress?

💡 Are you able to provide enough information to be able to reproduce your issue locally?

  • I can provide enough details to reproduce my issue on local environment.

Synpress version

3.7.1

Node.js version

18.16.0

Operating system

Win10

Run mode

Cypress + Synpress (as plugin)

CI platform (if applicable)

No response

Are you running your tests inside docker? (if applicable)

  • This issue could be related to docker.

What happened?

When I use the cy.setupMetamask and cy.changeMetamaskNetwork API, I get an error saying "Provided chain was not found" if the provided chain is Holesky. Additionally, the check link provided in the error message cannot be opened. What should I do?
ps: chainId = 17000
image

What is your expected behavior?

I expect to successfully add or switch to the Holesky network.

How to reproduce the bug.

    it("Setup Metamask and import the required wallets", () => {
        cy.setupMetamask(SECRET_WORDS, NETWORK_HOLESKY, PASSWORD)
        cy.changeMetamaskNetwork(NETWORK_HOLESKY)
        cy.visit("/ethereum/reward")
        cy.switchChain(NETWORK_HOLESKY)
        cy.wait(2000)
    })

Relevant log output

CypressError: `cy.task('setupMetamask')` failed with the following error:

> [setNetwork] Provided chain was not found.
For list of available chains, check: https://github.com/wagmi-dev/references/tree/main/packages/chains#chains

https://on.cypress.io/api/task
      at <unknown> (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:141557:78)
      at tryCatcher (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:8914:23)
      at Promise._settlePromiseFromHandler (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:6849:31)
      at Promise._settlePromise (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:6906:18)
      at Promise._settlePromise0 (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:6951:10)
      at Promise._settlePromises (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:7027:18)
      at _drainQueueStep (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:3621:12)
      at _drainQueue (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:3614:9)
      at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:3630:5)
      at Async.drainQueues (https://pre.stake.dxpool.in/__cypress/runner/cypress_runner.js:3500:14)
  From Your Spec Code:
      at Context.eval (webpack:///./node_modules/@synthetixio/synpress/support/commands.js:246:0)

  From Node.js Internals:
    Error: [setNetwork] Provided chain was not found.
    For list of available chains, check: https://github.com/wagmi-dev/references/tree/main/packages/chains#chains
        at findNetwork (D:\vs\Work-Abi\staking-web\node_modules\@synthetixio\synpress\helpers.js:52:13)
        at Object.changeNetwork (D:\vs\Work-Abi\staking-web\node_modules\@synthetixio\synpress\commands\metamask.js:397:23)
        at Object.initialSetup (D:\vs\Work-Abi\staking-web\node_modules\@synthetixio\synpress\commands\metamask.js:1271:28)
        at setupMetamask (D:\vs\Work-Abi\staking-web\node_modules\@synthetixio\synpress\plugins\index.js:303:7)
@abiii-starry abiii-starry added bug 🐛 Something isn't working needs triaging ⏳ labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working needs triaging ⏳
Projects
None yet
Development

No branches or pull requests

2 participants
@abiii-starry and others