Skip to content

docs: fix WETH getting started signer#169

Merged
mattsse merged 1 commit into
mainfrom
codex/fix-weth-getting-started
May 6, 2026
Merged

docs: fix WETH getting started signer#169
mattsse merged 1 commit into
mainfrom
codex/fix-weth-getting-started

Conversation

@mattsse

@mattsse mattsse commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

Updates the Getting Started WETH example to use a fresh random signer instead of Anvil's well-known default private key, then funds that signer on the local Anvil fork with anvil_setBalance before interacting with WETH.

The hardcoded default Anvil account now has EIP-7702 delegation code on mainnet, so on a fork WETH's withdraw path can revert when it tries to transfer ETH back to that account. Using a fresh funded signer avoids inheriting mainnet account state and keeps the example runnable.

Closes #160.

@mattsse mattsse requested a review from zerosnacks as a code owner May 6, 2026 17:29
@mattsse mattsse merged commit 2fdeace into main May 6, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

"Getting Started" example doesn't work

1 participant