IntersectMBO / IntersectMBO/plutus

`dischargeCekValue` doesn't handle open terms correctly

Open
#7,526 5 comments 1 reaction 1 assignee Claimed by @Unisay View on GitHub
bug Good first issue status: triaged
Dominant language
Haskell
Stars
1.6k
Forks
508
Avg merge
3d 10h
Merged PRs (30d)
22

Description

`dischargeCekValue` has the following code:

```haskell
-- 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.