Skip to content
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

feat(cli)!: replay transactions when forking at a tx hash #557

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

itegulov
Copy link
Contributor

What 💻

This PR changes behaviour of anvil-zksync fork --fork-url <url> --fork-transaction-hash <hash>:
Before: fork is initialized at the parent of the block containing provided tx hash, earlier transactions are not replayed
Now: fork is initialized at the parent of the block containing provided tx hash, earlier transactions are replayed

Why ✋

This better aligns to what I would expect to happen but admittedly this is a breaking change

@itegulov itegulov requested a review from a team as a code owner January 23, 2025 08:59
popzxc
popzxc previously approved these changes Jan 23, 2025
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still wait for @dutterbutter to agree with this approach (just in case).

@itegulov itegulov changed the title feat!(cli): replay transactions when forking at a tx hash feat(cli)!: replay transactions when forking at a tx hash Jan 23, 2025
@itegulov
Copy link
Contributor Author

Had to update the semantic PR title action as the old one is deprecated and was mad at my title for some reason...

Copy link
Collaborator

@dutterbutter dutterbutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. LGTM!

@itegulov itegulov merged commit a955a9b into main Jan 23, 2025
15 of 17 checks passed
@itegulov itegulov deleted the daniyar/replay-txs-on-fork branch January 23, 2025 13:16
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.

3 participants