remove usage of instanced Scripts
This commit is contained in:
parent
5d2abb523e
commit
e743c58ed6
11 changed files with 146 additions and 119 deletions
test
|
@ -227,8 +227,8 @@ describe('Bitcoin-core', function () {
|
|||
var transaction = Transaction.fromHex(txHex)
|
||||
assert.strictEqual(transaction.toHex(), txHex)
|
||||
|
||||
var script = Script.fromHex(scriptHex)
|
||||
assert.strictEqual(script.toHex(), scriptHex)
|
||||
var script = Script.fromHex(scriptHex).buffer
|
||||
assert.strictEqual(Script.fromBuffer(script).toHex(), scriptHex)
|
||||
|
||||
var hash = transaction.hashForSignature(inIndex, script, hashType)
|
||||
assert.deepEqual(hash, expectedHash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue