Skip to content

Commit c6189c1

Browse files
author
gege251
committed
Fix validity range to cli options mapping
1 parent 427d71a commit c6189c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BotPlutusInterface/CardanoCLI.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@ validRangeOpts :: SlotRange -> [Text]
361361
validRangeOpts (Interval lowerBound upperBound) =
362362
mconcat
363363
[ case lowerBound of
364-
LowerBound (Finite (Slot x)) True -> ["--invalid-hereafter", showText x]
365-
LowerBound (Finite (Slot x)) False -> ["--invalid-hereafter", showText (x + 1)]
364+
LowerBound (Finite (Slot x)) True -> ["--invalid-before", showText x]
365+
LowerBound (Finite (Slot x)) False -> ["--invalid-before", showText (x + 1)]
366366
_ -> []
367367
, case upperBound of
368-
UpperBound (Finite (Slot x)) True -> ["--invalid-before", showText (x + 1)]
369-
UpperBound (Finite (Slot x)) False -> ["--invalid-before", showText x]
368+
UpperBound (Finite (Slot x)) True -> ["--invalid-hereafter", showText (x + 1)]
369+
UpperBound (Finite (Slot x)) False -> ["--invalid-hereafter", showText x]
370370
_ -> []
371371
]
372372

0 commit comments

Comments
 (0)