Skip to content

Commit b931342

Browse files
author
David Case
committed
script-tester
1 parent b48e759 commit b931342

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

scratch/ts/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,17 @@ function main() {
2222
sourceSatoshis: sourceOutput.satoshis!,
2323
lockingScript: sourceOutput.lockingScript,
2424
transactionVersion: tx.version,
25-
otherInputs: [],
25+
otherInputs: tx.inputs.splice(test.inputIdx, 1),
2626
outputs: tx.outputs,
2727
unlockingScript: input.unlockingScript!,
2828
inputIndex: test.inputIdx,
2929
inputSequence: input.sequence,
3030
lockTime: tx.lockTime,
3131
})
3232
while(true) {
33-
// try{
34-
interp.step()
35-
// } catch(e) {
36-
// break
37-
// }
33+
interp.step()
3834
console.log(interp.programCounter, Utils.toHex(interp.stack[interp.stack.length - 1]))
3935
}
4036
}
4137

42-
// main().catch(console.error);
43-
4438
main();

scratch/ts/txs.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)