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