solidity icon indicating copy to clipboard operation
solidity copied to clipboard

feat: Convert verbatim into a single builtin with literal arguments

Open DeVikingMark opened this issue 7 months ago • 1 comments

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.

DeVikingMark avatar Apr 26 '25 09:04 DeVikingMark

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.

github-actions[bot] avatar Apr 26 '25 09:04 github-actions[bot]