scripts: remove coercion, fromASM returns Buffer

This commit is contained in:
Daniel Cousens 2015-08-14 10:31:48 +10:00
parent 812d74aa0a
commit 151386c46d
6 changed files with 60 additions and 68 deletions

View file

@ -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)