Replies: 3 comments 5 replies
-
|
It's possible by implementing It'd be cool if the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
-
|
A working example of how to set up import { MockConnector } from 'wagmi/connectors/mock'; // wagmi@1.4.13
// ...
const wagmiConfig = createConfig({
autoConnect: true,
connectors: [
new MockConnector({
chains: [sepolia],
options: {
flags: {
isAuthorized: true,
},
walletClient: createWalletClient({
account: mnemonicToAccount(testWallet.mnemonic),
chain: sepolia,
transport: http(),
}),
},
}),
],
publicClient,
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GM,
With wagmi v1, you could override the wallet client using
MockConnectorbut I can't find how to do that with v2?Here is how we set up the app with v1 to run tests with cypress and anvil:
Is it still something we can do with v2?
Beta Was this translation helpful? Give feedback.
All reactions