scripts: fix isScriptHashInput classification
This commit is contained in:
parent
ec66ca9b1a
commit
d00ec9af29
3 changed files with 7 additions and 10 deletions
test
|
@ -86,7 +86,7 @@ describe('Scripts', function () {
|
|||
|
||||
fixtures.invalid[inputFnName].forEach(function (f) {
|
||||
if (inputFn && f.scriptSig) {
|
||||
it('returns false for ' + f.scriptSig, function () {
|
||||
it('returns false for ' + f.description + ' (' + f.scriptSig + ')', function () {
|
||||
var script = Script.fromASM(f.scriptSig)
|
||||
|
||||
assert.equal(inputFn(script), false)
|
||||
|
@ -112,7 +112,7 @@ describe('Scripts', function () {
|
|||
|
||||
fixtures.invalid[outputFnName].forEach(function (f) {
|
||||
if (outputFn && f.scriptPubKey) {
|
||||
it('returns false for ' + f.scriptPubKey, function () {
|
||||
it('returns false for ' + f.description + ' (' + f.scriptPubKey + ')', function () {
|
||||
var script = Script.fromASM(f.scriptPubKey)
|
||||
|
||||
assert.equal(outputFn(script), false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue