Skip to content

Cannot get wallet client when using viem in hardhat #21

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

Open
saqlain1020 opened this issue Jan 29, 2025 · 0 comments
Open

Cannot get wallet client when using viem in hardhat #21

saqlain1020 opened this issue Jan 29, 2025 · 0 comments

Comments

@saqlain1020
Copy link

I've setup hardhat with fireblocks keys as described in the docs. deploying contracts work well but i can't access the wallet client address in the scripts.

const [deployer] = await hre.viem.getWalletClients();

console.log(deployer) // undefined

It should've logged the deployer vault, but the value is always undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant