Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

The to parameter is Option

, so the combination of if let Some(to) and else if to.is_none() already covers all cases. The final else with “ENS not supported.” was unreachable and misleading. Simplified the branching to if Some(..) { call } else { create }, removing dead code and improving readability without changing behavior. This matches how simulate is called from simulate_and_fill, where to is always derived as Option from TxKind.

@onbjerg onbjerg enabled auto-merge December 10, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants