Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

How can I impersonate an address for testing purposes? #4078

Closed
joelamouche opened this issue Dec 22, 2022 · 1 comment
Closed

How can I impersonate an address for testing purposes? #4078

joelamouche opened this issue Dec 22, 2022 · 1 comment

Comments

@joelamouche
Copy link

As advertised in the README.md, it should be possible to impersonate any account without private keys.

How do I do that?

Thanks in advance

@davidmurdoch
Copy link
Member

You can use evm_addAccount, https://github.com/trufflesuite/ganache/blob/develop/src/chains/ethereum/ethereum/RPC-METHODS.md#evm_addaccount or the command line option --wallet.unlockedAccounts=0x<address here> (see ganache --help)

@trufflesuite trufflesuite locked and limited conversation to collaborators Dec 22, 2022
@davidmurdoch davidmurdoch converted this issue into discussion #4079 Dec 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants