Skip to content

Commit f103c68

Browse files
committed
Fix Dijkstra-era script purpose rendering
Replace `undefined` with `renderConwayPlutusPurpose` for `AlonzoEraOnwardsDijkstra` in `renderScriptPurpose`, preventing a runtime crash when tracing script purposes in the Dijkstra era. Based on #6427 by @Savissy.
1 parent aa917d0 commit f103c68

File tree

1 file changed

+1
-2
lines changed
  • cardano-node/src/Cardano/Node/Tracing

1 file changed

+1
-2
lines changed

cardano-node/src/Cardano/Node/Tracing/Render.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ renderScriptPurpose =
208208
Api.AlonzoEraOnwardsAlonzo -> renderAlonzoPlutusPurpose
209209
Api.AlonzoEraOnwardsBabbage -> renderAlonzoPlutusPurpose
210210
Api.AlonzoEraOnwardsConway -> renderConwayPlutusPurpose
211-
-- TODO: fix
212-
Api.AlonzoEraOnwardsDijkstra -> undefined
211+
Api.AlonzoEraOnwardsDijkstra -> renderConwayPlutusPurpose
213212
)
214213

215214
renderAlonzoPlutusPurpose :: ()

0 commit comments

Comments
 (0)