remove Script object
This commit is contained in:
parent
e743c58ed6
commit
e05f8a542d
11 changed files with 223 additions and 305 deletions
test
|
@ -227,8 +227,9 @@ describe('Bitcoin-core', function () {
|
|||
var transaction = Transaction.fromHex(txHex)
|
||||
assert.strictEqual(transaction.toHex(), txHex)
|
||||
|
||||
var script = Script.fromHex(scriptHex).buffer
|
||||
assert.strictEqual(Script.fromBuffer(script).toHex(), scriptHex)
|
||||
var script = new Buffer(scriptHex, 'hex')
|
||||
var scriptChunks = Script.decompile(script)
|
||||
assert.strictEqual(Script.compile(scriptChunks).toString('hex'), scriptHex)
|
||||
|
||||
var hash = transaction.hashForSignature(inIndex, script, hashType)
|
||||
assert.deepEqual(hash, expectedHash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue