scripts: remove coercion, fromASM returns Buffer
This commit is contained in:
parent
812d74aa0a
commit
151386c46d
6 changed files with 60 additions and 68 deletions
test
|
@ -22,7 +22,7 @@ describe('Transaction', function () {
|
|||
script = data
|
||||
|
||||
} else if (txIn.script) {
|
||||
script = Script.compile(Script.fromASM(txIn.script))
|
||||
script = Script.fromASM(txIn.script)
|
||||
}
|
||||
|
||||
tx.addInput(txHash, txIn.index, txIn.sequence, script)
|
||||
|
@ -36,7 +36,7 @@ describe('Transaction', function () {
|
|||
script = data
|
||||
|
||||
} else if (txOut.script) {
|
||||
script = Script.compile(Script.fromASM(txOut.script))
|
||||
script = Script.fromASM(txOut.script)
|
||||
}
|
||||
|
||||
tx.addOutput(script, txOut.value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue