Skip to content

fix(optimism): correct string formatting in error message#17923

Merged
mattsse merged 1 commit intoparadigmxyz:mainfrom
keroro520:fix-optimism-rpc-string-formatting
Aug 19, 2025
Merged

fix(optimism): correct string formatting in error message#17923
mattsse merged 1 commit intoparadigmxyz:mainfrom
keroro520:fix-optimism-rpc-string-formatting

Conversation

@bendanzhentan
Copy link
Contributor

The error message contains {url} but uses closure syntax instead of proper string formatting. This will literally print {url} instead of the actual URL value.

This fix uses format! macro to properly interpolate url.

The error message contains `{url}` but uses closure syntax
instead of proper string formatting. This will literally
print `{url}` instead of the actual URL value.

This fix uses `format!` macro to properly interpolate url.
Copy link
Collaborator

@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.

ah, yes this should indeed be a format

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Aug 19, 2025
@mattsse mattsse added this pull request to the merge queue Aug 19, 2025
Merged via the queue into paradigmxyz:main with commit d31e4ca Aug 19, 2025
42 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Aug 19, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 22, 2026
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Feb 11, 2026
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