solidity
solidity copied to clipboard
feat: Convert verbatim into a single builtin with literal arguments
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>ofunctions 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.
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.