Skip to content

feat: Convert verbatim into a single builtin with literal arguments #16024

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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

DeVikingMark
Copy link

Implements #15805 by:

  • Add new verbatim(n, m, bytecode, ...) function with three literal arguments:

    • n: number of input slots (0-99)
    • m: number of output slots (0-99)
    • bytecode: string literal with the bytecode
  • Keep legacy verbatim_<n>i_<m>o functions for backward compatibility

  • Update documentation to describe the new API and mark old functions as deprecated

  • Add comprehensive tests for both syntax variants

This simplifies the implementation and usage, while maintaining the same functionality.

Copy link

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.

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