IntersectMBO / IntersectMBO/cardano-ledger

Previous `ScriptTestContext` might get overriden when concatenating `Map`s of `ScriptTestContext`s

Open
#5,017 2 comments 0 reactions 0 assignees View on GitHub
:detective: testing bug
Dominant language
Haskell
Stars
295
Forks
179
Avg merge
4d 7h
Merged PRs (30d)
29

Description

Note that the `Map` here has `ScriptHash` as the key type:
```
instance AlonzoEraImp ConwayEra where
scriptTestContexts =
plutusTestScripts SPlutusV1
<> plutusTestScripts SPlutusV2
<> plutusTestScripts SPlutusV3
```

That means that whenever a new `plutusTestScripts` with a different language is concatenated to the map, the previous `ScriptTestContext` gets overwritten.

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.