Skip to content

ethers Contract Interface Fails To Load When Called With A v6 Provider #4

@dysbulic

Description

@dysbulic

When attempting to call QuestChain__factory.connect using ethers v6, the call fails with the error: "invalid signer or provider" because apparently v5's Provider.isProvider() returns false when called with a v6 Provider.

The solution is likely to upgrade to ethers v6 which was, in fairness, released in February of 2023. ethers v6 is required for other libraries like the Ethereum Attestation Service. Most of the changes are just removing containing namespaces like ethers.utils.<lib>ethers.<lib> & the same for ethers.providers.*. Also, Web3Provider becomes BrowserProvider. (I know because I just did the v6 → v5 transition to fix Quest Chains in MetaGame, breaking EAS in the process.)

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