IntersectMBO/plutus

`dischargeCekValue` doesn't handle open terms correctly

Open

#7,526 opened on 2026年1月15日

GitHub で見る
 (5 comments) (1 reaction) (1 assignee)Haskell (511 forks)batch import
Good first issuebugstatus: triaged

Repository metrics

Stars
 (1,637 stars)
PR merge metrics
 (平均マージ 15d 11h) (30d で 13 merged PRs)

説明

dischargeCekValue has the following code:

                  -- var is free, leave it alone
                  (Var () named)

which means that

(\0 \0 var 2) (delay (var 1))

evaluates to

[1 :-> delay (var 1)] (\0 var 2)

which then discharges to

\0 delay (var 1)

which is variable capture.

コントリビューターガイド