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

feat: add autoImpersonate flag #47

Merged
merged 6 commits into from
Mar 13, 2024
Merged

feat: add autoImpersonate flag #47

merged 6 commits into from
Mar 13, 2024

Conversation

banky
Copy link
Contributor

@banky banky commented Mar 12, 2024

Anvil allows an autoImpersonate flag. This is really useful for simulating transactions from accounts that aren't already unlocked. See the docs here: https://book.getfoundry.sh/reference/anvil/#options

This PR adds the --auto-impersonate flag

Thanks!


PR-Codex overview

This PR adds the autoImpersonate property to AnvilOptions in createAnvil.ts for enabling auto impersonation feature.

Detailed summary

  • Added autoImpersonate property to AnvilOptions
  • Implemented test for starting anvil with auto impersonation
  • Updated createAnvilClients to support auto impersonation functionality

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Mar 12, 2024

🦋 Changeset detected

Latest commit: 5f094bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@viem/anvil Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@banky banky changed the title Add autoImpersonate flag feat: add autoImpersonate flag Mar 12, 2024
@jxom jxom merged commit 35affef into wevm:main Mar 13, 2024
3 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants