@helios-lang/contract-utils 0.2.15 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helios-lang/contract-utils",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -364,9 +364,11 @@ function genFuncType(fn) {
364
364
  fields.push("$currentScript: string")
365
365
  }
366
366
 
367
- fn.arguments.forEach(({ name, type: _type }) => {
368
- fields.push(`${name}: UplcData`)
367
+ fn.arguments.forEach(({ name, type: _type }, i) => {
368
+ if (!name.startsWith("_")) {
369
+ fields.push(`${name}: UplcData`)
370
+ }
369
371
  })
370
372
 
371
- return `({${fields.join(", ")}}) => UplcData`
373
+ return `(args: {${fields.join(", ")}}) => UplcData`
372
374
  }