We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48e759 commit b931342Copy full SHA for b931342
scratch/ts/index.ts
@@ -22,23 +22,17 @@ function main() {
22
sourceSatoshis: sourceOutput.satoshis!,
23
lockingScript: sourceOutput.lockingScript,
24
transactionVersion: tx.version,
25
- otherInputs: [],
+ otherInputs: tx.inputs.splice(test.inputIdx, 1),
26
outputs: tx.outputs,
27
unlockingScript: input.unlockingScript!,
28
inputIndex: test.inputIdx,
29
inputSequence: input.sequence,
30
lockTime: tx.lockTime,
31
})
32
while(true) {
33
- // try{
34
- interp.step()
35
- // } catch(e) {
36
- // break
37
- // }
+ interp.step()
38
console.log(interp.programCounter, Utils.toHex(interp.stack[interp.stack.length - 1]))
39
}
40
41
42
-// main().catch(console.error);
43
-
44
main();
scratch/ts/txs.ts
0 commit comments