scrypttest
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -65,5 +65,6 @@ 'use strict'; | ||
let args = Array.prototype.slice.call(arguments); | ||
// TODO: handle case of no ctor | ||
// handle case of no ctor | ||
const ctorParamLen = res.ctor ? res.ctor.params.length : 0; | ||
// TODO: arguments type check, besides number check | ||
if (args && res.ctor.params && args.length !== res.ctor.params.length) { | ||
if (args.length !== ctorParamLen) { | ||
// TODO: better error message | ||
@@ -80,2 +81,5 @@ throw new Error('wrong arg#'); | ||
} | ||
setScriptPubKey(scriptPubKey) { | ||
this.scriptPubKey = scriptPubKey.split(' '); | ||
} | ||
}; | ||
@@ -82,0 +86,0 @@ res.functions.map((func) => { |
{ | ||
"name": "scrypttest", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "testing library for sCrypt projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15095
358