@helios-lang/contract-utils
Advanced tools
Comparing version 0.3.13 to 0.3.14
{ | ||
"name": "@helios-lang/contract-utils", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "Convenience and type-safety utilities for using Helios validators from within Typescript", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -57,3 +57,8 @@ import { genTypes } from "../codegen/TypeSchema.js" | ||
if (purpose == "mixed") { | ||
const isMixed = | ||
purpose == "mixed" || | ||
/** @type {any} */ (hash.context)?.redeemer?.schema?.id == | ||
"__helios__mixedargs" | ||
if (isMixed) { | ||
this.addImport("ValidatorHash", "@helios-lang/ledger", true) | ||
@@ -165,3 +170,3 @@ .addImport("makeValidatorHash", "@helios-lang/ledger", false) | ||
redeemer: /* @__PURE__ */ makeCast(${JSON.stringify(redeemer.schema, undefined, 4).split("\n").join("\n ")}, {isMainnet: ${this.isMainnet}}) | ||
})` | ||
}` | ||
) | ||
@@ -168,0 +173,0 @@ .writeDefLine( |
306273
7515