Skip to content

Which provider to use with Hardhat? #126

Answered by tmm
ijonas asked this question in Q&A
Jan 30, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

InjectedConnector configured with chain.hardhat should work fine:

import { chain } from 'wagmi'
import { InjectedConnector } from 'wagmi/connectors/injected'

const connector = new InjectedConnector({
  chains: [chain.hardhat],
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ijonas
Comment options

Answer selected by tmm
Comment options

You must be logged in to vote
1 reply
@tmm
Comment options

tmm Feb 8, 2022
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants