script/tx: decompile returns maybe chunks
This commit is contained in:
parent
58b465f745
commit
581f57ff6f
5 changed files with 17 additions and 11 deletions
test
|
@ -124,10 +124,10 @@ describe('script', function () {
|
|||
})
|
||||
|
||||
fixtures.invalid.decompile.forEach(function (f) {
|
||||
it('decompiles ' + f.script + ' to [] because of "' + f.description + '"', function () {
|
||||
it('fails to decompile ' + f.script + ', because "' + f.description + '"', function () {
|
||||
var chunks = bscript.decompile(Buffer.from(f.script, 'hex'))
|
||||
|
||||
assert.strictEqual(chunks.length, 0)
|
||||
assert.strictEqual(chunks, null)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue