Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add ability to decorate sol! macro with style attributes (snake_case, serde rename) #581

Closed
zerosnacks opened this issue Mar 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@zerosnacks
Copy link
Member

Component

contract

Describe the feature you would like

Follow up from: alloy-rs/examples#8 (comment)

Request is to add the ability to decorate sol! macro with style attributes.

Consider the following:

let IERC20::totalSupplyReturn { _0 } = contract.totalSupply().call().await?;

This would, when having been decorated by a snake_case attribute be transformed in:

let IERC20::total_supply_return { _0 } = contract.total_supply().call().await?;

Additional context

Any changes will be reflected in alloy/examples

@zerosnacks zerosnacks added the enhancement New feature or request label Mar 21, 2024
@prestwich prestwich transferred this issue from alloy-rs/alloy Mar 21, 2024
@zerosnacks zerosnacks changed the title [Suggestion] Add ability to decorate sol! macro with style attributes (snake_case, serde rename) [Feature] Add ability to decorate sol! macro with style attributes (snake_case, serde rename) Mar 21, 2024
@DaniPopes
Copy link
Member

Duplicate of #570.

@DaniPopes DaniPopes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants