Skip to content

fix(anvil): variable shadowing bug in ReadyTransactions::remove_with_markers#13436

Merged
mattsse merged 2 commits intofoundry-rs:masterfrom
letmehateu:shadowing-variable
Feb 14, 2026
Merged

fix(anvil): variable shadowing bug in ReadyTransactions::remove_with_markers#13436
mattsse merged 2 commits intofoundry-rs:masterfrom
letmehateu:shadowing-variable

Conversation

@letmehateu
Copy link
Contributor

Fixes variable shadowing bug that caused incorrect transaction removal from unlock lists.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

Correct fix for a real variable shadowing bug in remove_with_markers. The old code shadowed hash (the tx being removed) with the provider's hash from provided_markers.get(mark), then searched unlocks for the wrong value — meaning unlock-list entries were never actually cleaned up. The rename to provider_hash/provider_tx and the comparison against the outer hash is the right fix.

@mattsse mattsse merged commit 28769aa into foundry-rs:master Feb 14, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Feb 14, 2026
@letmehateu letmehateu deleted the shadowing-variable branch February 14, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants