Skip to content

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Aug 1, 2025

closes foundry-rs/foundry#11180

two edge cases with provider

we add additional function names to the instance and need to check that these don't conflict

also, having struct provider; messes with provider:P arguments -.- so I renamed to __provider

with this this now compiles.

no function changes expected, renaming these functions is fine, didn't work before, hence the issue.

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.

lgtm

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Aug 1, 2025
@mattsse mattsse merged commit 2adeef0 into main Aug 1, 2025
31 checks passed
@mattsse mattsse deleted the matt/check-reserved-function-names branch August 1, 2025 21:47
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug(forge bind): generates invalid Rust code for contracts with symbols named provider

2 participants