Skip to content

Comments

chore(anvil): rm dead code#13019

Merged
onbjerg merged 1 commit intomasterfrom
onbjerg/push-lmxtztozykqk
Jan 8, 2026
Merged

chore(anvil): rm dead code#13019
onbjerg merged 1 commit intomasterfrom
onbjerg/push-lmxtztozykqk

Conversation

@onbjerg
Copy link
Member

@onbjerg onbjerg commented Jan 8, 2026

Motivation

Cleanup

Solution

Remove dead/unused code.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

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

these might be used externally

@onbjerg
Copy link
Member Author

onbjerg commented Jan 8, 2026

which ones? there are some that we can def remove because there are equivalents in alloy (e.g. base fee calc)

@DaniPopes
Copy link
Member

idk maybe the inspect. @mattsse thoughts

mattsse
mattsse previously requested changes Jan 8, 2026
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.

I'd rather do this on a case by case basis, keeping the pub fn doesnt really hurt

Comment on lines -2797 to -2804
/// Sets the reported block number
///
/// Handler for ETH RPC call: `anvil_setBlock`
pub fn anvil_set_block(&self, block_number: u64) -> Result<()> {
node_info!("anvil_setBlock");
self.backend.set_block_number(block_number);
Ok(())
}
Copy link
Member Author

Choose a reason for hiding this comment

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

i think we should also remove this then if we are doing case by case, this is entirely unused. there is no anvil_setBlock @mattsse

@onbjerg onbjerg force-pushed the onbjerg/push-lmxtztozykqk branch from 0d83cb4 to 3f74352 Compare January 8, 2026 14:21
@onbjerg onbjerg requested review from DaniPopes and mattsse January 8, 2026 14:22
@onbjerg onbjerg added this pull request to the merge queue Jan 8, 2026
Merged via the queue into master with commit ad5ff80 Jan 8, 2026
16 checks passed
@onbjerg onbjerg deleted the onbjerg/push-lmxtztozykqk branch January 8, 2026 18:01
@github-project-automation github-project-automation bot moved this to Done in Foundry Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-debt Type: code debt

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants