@@ -290,7 +290,7 @@ def run_test(self):
290
290
291
291
# Test introspection opcodes
292
292
# 1a. No Pegins/issuances
293
- self .log .info ("Instrospection tests: outpoint flag" )
293
+ self .log .info ("Introspection tests: outpoint flag" )
294
294
self .tapscript_satisfy_test (CScript ([OP_0 , OP_INSPECTINPUTOUTPOINT , b'\x00 ' , OP_EQUALVERIFY , OP_DROP , OP_DROP , OP_1 ]))
295
295
# 1b. Add a pegin (Test pegin input must be 0x40)
296
296
self .tapscript_satisfy_test (CScript ([OP_0 , OP_INSPECTINPUTOUTPOINT , b'\x40 ' , OP_EQUALVERIFY , OP_DROP , OP_DROP , OP_1 ]), add_pegin = True )
@@ -304,7 +304,7 @@ def run_test(self):
304
304
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" )
305
305
306
306
# Test opcode for inspecting prev tx
307
- self .log .info ("Instrospection tests: inputs" )
307
+ self .log .info ("Introspection tests: inputs" )
308
308
self .tapscript_satisfy_test (CScript ([OP_0 , OP_INSPECTINPUTOUTPOINT , b'\x00 ' , OP_EQUALVERIFY , OP_TOALTSTACK , OP_EQUALVERIFY , OP_FROMALTSTACK , OP_EQUAL ]), add_prevout = True )
309
309
310
310
# Test taproot asset with blinding.
@@ -351,12 +351,12 @@ def run_test(self):
351
351
self .tapscript_satisfy_test (CScript ([- 1 , OP_1 , OP_INSPECTINPUTVALUE , OP_FALSE , OP_EQUAL ]), fail = "Introspection index out of bounds" )
352
352
353
353
# Test current input
354
- self .log .info ("Instrospection tests: current input index" )
354
+ self .log .info ("Introspection tests: current input index" )
355
355
self .tapscript_satisfy_test (CScript ([OP_PUSHCURRENTINPUTINDEX , OP_0 , OP_EQUAL ]))
356
356
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" )
357
357
358
358
# Test Outputs
359
- self .log .info ("Instrospection tests: outputs" )
359
+ self .log .info ("Introspection tests: outputs" )
360
360
for blind in [True , False ]:
361
361
for out_pos in [0 , 1 ]:
362
362
self .tapscript_satisfy_test (CScript ([out_pos , OP_INSPECTOUTPUTASSET , OP_TOALTSTACK , OP_EQUALVERIFY , OP_FROMALTSTACK , OP_EQUAL ]), blind = blind , add_out_asset = out_pos )
@@ -368,8 +368,8 @@ def run_test(self):
368
368
self .tapscript_satisfy_test (CScript ([120 , OP_INSPECTOUTPUTASSET , OP_FALSE , OP_EQUAL ]), fail = "Introspection index out of bounds" )
369
369
self .tapscript_satisfy_test (CScript ([- 1 , OP_INSPECTOUTPUTVALUE , OP_FALSE , OP_EQUAL ]), fail = "Introspection index out of bounds" )
370
370
371
- # Finally, check the tx instrospection
372
- self .log .info ("Instrospection tests: tx" )
371
+ # Finally, check the tx introspection
372
+ self .log .info ("Introspection tests: tx" )
373
373
# Test version equality
374
374
self .tapscript_satisfy_test (CScript ([OP_INSPECTVERSION , int (2 ).to_bytes (4 , 'little' ), OP_EQUAL ]), ver = 2 )
375
375
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