lfglabs-dev / lfglabs-dev/verity

feat(Codegen): native Solidity panic payload emission (Panic(uint256))

Closed
#1,999 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lean
Stars
148
Forks
20
Avg merge
1d 14h
Merged PRs (30d)
29

Description

Promoted from #1982 P2 to a standalone tracked issue (was previously only a roadmap bullet).

Problem

Solidity panic revert payloads (Panic(uint256) selector 0x4e487b71 + code) are modeled via the small solidityPanicModule ECM (Morpho Midnight Contract.lean:1765, Th0rgal/morpho-verity).

Goal

Compiler-owned panic payload emission (and the matching proof-side revert observable), removing the ECM. Natural to bundle with checked-arithmetic emission (#1993), which needs panic(0x11) paths, and adjacent to the revertError non-literal-args work (#1974).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the solidityPanicModule ECM and Morpho Midnight's Contract.lean:1765, then review the related checked-arithmetic issue #1993 and revertError issue #1974. Done means compiler-owned emission of Solidity Panic(uint256) payloads, a matching proof-side revert observable, and removal of the ECM.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.