Skip to content

Commit 792e43a

Browse files
committed
Remove incorrect 0x hex prefix validation for witness values
1 parent 0619de1 commit 792e43a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lsp/src/backend.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -838,16 +838,6 @@ fn validate_witness_file(text: &str) -> Vec<Diagnostic> {
838838
format!("Witness '{}' is missing required 'value' field", name),
839839
));
840840
}
841-
} else if let Some(value_str) = witness_obj.get("value").and_then(|v| v.as_str()) {
842-
// Validate that value starts with 0x
843-
if !value_str.starts_with("0x") {
844-
if let Some(pos) = find_value_position(text, name, "value") {
845-
diagnostics.push(Diagnostic::new_simple(
846-
Range::new(pos, pos),
847-
format!("Witness '{}' value must start with '0x' (hex format)", name),
848-
));
849-
}
850-
}
851841
}
852842

853843
// Check for required 'type' field

0 commit comments

Comments
 (0)