diff --git a/package.json b/package.json index 87d9df13..fd2d2717 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/codegen/Definitions.js b/src/codegen/Definitions.js index de10daf1..959fa168 100644 --- a/src/codegen/Definitions.js +++ b/src/codegen/Definitions.js @@ -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} diff --git a/src/program/version.js b/src/program/version.js index 9965c090..03dea07d 100644 --- a/src/program/version.js +++ b/src/program/version.js @@ -1 +1 @@ -export const VERSION = "0.17.0-88" +export const VERSION = "0.17.0-89"