Skip to content

Can convert StateMutability from string#16586

Draft
erak wants to merge 1 commit intocommon-metadata-hashfrom
state-mutability-from-string
Draft

Can convert StateMutability from string#16586
erak wants to merge 1 commit intocommon-metadata-hashfrom
state-mutability-from-string

Conversation

@erak
Copy link
Copy Markdown
Collaborator

@erak erak commented Apr 9, 2026

Part of #16394. Depends on #16585.

Description

In order to deserialize StateMutability from JSON, a method that allows parsing it from string was introduced. It follows the pattern that was used in #16585, which defines the mapping once and then uses this for the conversion from and to std::string.

TODO

  • add unit tests

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

@erak erak mentioned this pull request Apr 9, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant