Skip to content

Commit 662e118

Browse files
committed
fix typo in test/functional/feature_tapscript_opcodes.py
1 parent 97d7bcc commit 662e118

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/functional/feature_tapscript_opcodes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def run_test(self):
289289

290290
# Test introspection opcodes
291291
# 1a. No Pegins/issuances
292-
self.log.info("Instrospection tests: outpoint flag")
292+
self.log.info("Introspection tests: outpoint flag")
293293
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]))
294294
# 1b. Add a pegin (Test pegin input must be 0x40)
295295
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x40', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]), add_pegin=True)
@@ -303,7 +303,7 @@ def run_test(self):
303303
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]), add_pegin = True, add_issuance=True, fail="Script failed an OP_EQUALVERIFY operation")
304304

305305
# Test opcode for inspecting prev tx
306-
self.log.info("Instrospection tests: inputs")
306+
self.log.info("Introspection tests: inputs")
307307
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_TOALTSTACK, OP_EQUALVERIFY, OP_FROMALTSTACK, OP_EQUAL]), add_prevout=True)
308308

309309
# Test taproot asset with blinding.
@@ -350,12 +350,12 @@ def run_test(self):
350350
self.tapscript_satisfy_test(CScript([-1, OP_1, OP_INSPECTINPUTVALUE, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
351351

352352
# Test current input
353-
self.log.info("Instrospection tests: current input index")
353+
self.log.info("Introspection tests: current input index")
354354
self.tapscript_satisfy_test(CScript([OP_PUSHCURRENTINPUTINDEX, OP_0, OP_EQUAL]))
355355
self.tapscript_satisfy_test(CScript([OP_PUSHCURRENTINPUTINDEX, OP_1, OP_EQUAL]), fail="Script evaluated without error but finished with a false/empty top stack element")
356356

357357
# Test Outputs
358-
self.log.info("Instrospection tests: outputs")
358+
self.log.info("Introspection tests: outputs")
359359
for blind in [True, False]:
360360
for out_pos in [0, 1]:
361361
self.tapscript_satisfy_test(CScript([out_pos, OP_INSPECTOUTPUTASSET, OP_TOALTSTACK, OP_EQUALVERIFY, OP_FROMALTSTACK, OP_EQUAL]), blind=blind, add_out_asset=out_pos)
@@ -367,8 +367,8 @@ def run_test(self):
367367
self.tapscript_satisfy_test(CScript([120, OP_INSPECTOUTPUTASSET, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
368368
self.tapscript_satisfy_test(CScript([-1, OP_INSPECTOUTPUTVALUE, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
369369

370-
# Finally, check the tx instrospection
371-
self.log.info("Instrospection tests: tx")
370+
# Finally, check the tx introspection
371+
self.log.info("Introspection tests: tx")
372372
# Test version equality
373373
self.tapscript_satisfy_test(CScript([OP_INSPECTVERSION, int(2).to_bytes(4, 'little'), OP_EQUAL]), ver = 2)
374374
self.tapscript_satisfy_test(CScript([OP_INSPECTVERSION, int(5).to_bytes(4, 'little'), OP_EQUAL]), ver = 2, fail="Script evaluated without error but finished with a false/empty top stack element")

0 commit comments

Comments
 (0)