Skip to content

"Error" after network change? #16

@fryorcraken

Description

@fryorcraken

https://rlnwakuorg.vercel.app/

Using brave and Rabby

  • connect via Rabby
  • says "network changes to Sepolia"
  • "red Error button"

logs:

238-c9475d6751b9126c.js:1 Auto-init check: Object
238-c9475d6751b9126c.js:1 No existing connection found
/favicon.ico:1  Failed to load resource: the server responded with a status of 404 ()
/favicon.ico:1  Failed to load resource: the server responded with a status of 404 ()
238-c9475d6751b9126c.js:1 Auto-init check: Object
238-c9475d6751b9126c.js:1 Auto-initializing Light RLN implementation...
238-c9475d6751b9126c.js:1 InitializeRLN called. Connected: true Signer available: true
238-c9475d6751b9126c.js:1 Creating RLN instance...
238-c9475d6751b9126c.js:1 Auto-init check: Object
517-ac226ac24a253129.js:1 Error fetching WTT balance: Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="balanceOf(address)", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.8.0)
    at d.makeError (497-899ffb3a5d0ab406.js:1:132116)
    at d.throwError (497-899ffb3a5d0ab406.js:1:132230)
    at td.decodeFunctionResult (497-899ffb3a5d0ab406.js:1:111201)
    at tP.<anonymous> (497-899ffb3a5d0ab406.js:1:118710)
    at Generator.next (<anonymous>)
    at s (497-899ffb3a5d0ab406.js:1:115091)
window.console.error @ 517-ac226ac24a253129.js:1
238-c9475d6751b9126c.js:1 RLN instance created successfully.
238-c9475d6751b9126c.js:1 Starting RLN with signer...
238-c9475d6751b9126c.js:1 Auto-init check: Object
517-ac226ac24a253129.js:1 Error starting RLN: Error: Failed to start RLN contract, chain ID of contract is different from current one: contract-59141, current network-1
    at B.determineStartOptions (497-899ffb3a5d0ab406.js:2:3636)
    at async B.start (497-899ffb3a5d0ab406.js:2:2046)
    at async 238-c9475d6751b9126c.js:1:10841
window.console.error @ 517-ac226ac24a253129.js:1
238-c9475d6751b9126c.js:1 Network mismatch detected, attempting to switch to Linea Sepolia...
238-c9475d6751b9126c.js:1 Current network chain ID: 1
238-c9475d6751b9126c.js:1 Not on Linea Sepolia, attempting to switch...
238-c9475d6751b9126c.js:1 Successfully switched to Linea Sepolia
238-c9475d6751b9126c.js:1 Auto-init check: Object
238-c9475d6751b9126c.js:1 Auto-init check: Object

Solved by doing a refresh -> maybe best if the consequences of the chain change are handled automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions