@hyperionbt/helios
Advanced tools
Comparing version 0.13.24 to 0.13.25
{ | ||
"name": "@hyperionbt/helios", | ||
"type": "module", | ||
"version": "0.13.24", | ||
"version": "0.13.25", | ||
"description": "Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to build 100% client-side dApps for Cardano.", | ||
@@ -6,0 +6,0 @@ "main": "helios.js", |
@@ -2157,6 +2157,13 @@ //@ts-check | ||
} else { | ||
maybeElse.assertWord("else"); | ||
const elseWord = maybeElse.assertWord("else"); | ||
const next = assertDefined(ts.shift()); | ||
if (next.isGroup("{")) { | ||
if (!elseWord) { | ||
return null; | ||
} | ||
const next = assertToken(ts.shift(), elseWord.site); | ||
if (!next) { | ||
return null; | ||
} else if (next.isGroup("{")) { | ||
// last group | ||
@@ -2176,7 +2183,7 @@ const braces = next.assertGroup(); | ||
if (elseBranch === null) { | ||
if (!elseBranch) { | ||
return null; | ||
} else { | ||
branches.push(elseBranch); | ||
} | ||
branches.push(elseBranch); | ||
break; | ||
@@ -2183,0 +2190,0 @@ } else if (next.isWord("if")) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
4922584
94800