Skip to content

Commit

Permalink
dummy ownHash don't lead to the additional special-case dependsOnOwnH…
Browse files Browse the repository at this point in the history
…ash IR
  • Loading branch information
christianschmitz committed Sep 18, 2024
1 parent 0591d03 commit 6316156
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helios-lang/compiler",
"version": "0.17.0-88",
"version": "0.17.0-89",
"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.",
"main": "src/index.js",
"types": "types/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/codegen/Definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export function genExtraDefs(options) {
)

const ownHash = options.hashDependencies[options.name]
if (ownHash) {
if (ownHash && ownHash.length > 1) {
// make sure ownHash isn't a dummy value
// this is a special situation in which we know the ownHash because it is derived from another compilation, but we still want to call these functions because they might fail
ir = $`(_ignored) -> {
#${ownHash.startsWith("#") ? ownHash.slice(1) : ownHash}
Expand Down
2 changes: 1 addition & 1 deletion src/program/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "0.17.0-88"
export const VERSION = "0.17.0-89"

0 comments on commit 6316156

Please sign in to comment.