Skip to content

Commit 2f1e2bc

Browse files
authored
added colon at end of if statement - bip-0119.mediawiki
Python requires a colon at the end of an if statement to denote the beginning of the block of code that will be executed if the condition is True. If the colon is omitted, a syntax error will occur, and the code will not run. Since the syntax error will prevent the code from running, it won't introduce any vulnerabilities by itself. However, it will cause the application to fail at the point where the code is parsed, which might expose other issues if error handling is not implemented properly.
1 parent 55566a7 commit 2f1e2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0119.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def execute_bip_119(self):
8888
self.context.precomputed_ctv_data = self.context.tx.get_default_check_template_precomputed_data()
8989
9090
# If the hashes do not match, return error
91-
if stack[-1] != self.context.tx.get_default_check_template_hash(self.context.nIn, self.context.precomputed_ctv_data)
91+
if stack[-1] != self.context.tx.get_default_check_template_hash(self.context.nIn, self.context.precomputed_ctv_data):
9292
return self.errors_with(errors.script_err_template_mismatch)
9393
9494
return self.return_as_nop()

0 commit comments

Comments
 (0)