Skip to content

Commit 828c29f

Browse files
author
Daniel Kuehr
committed
fix panic when no lookup value is provided with lookup flags
1 parent 5ba0109 commit 828c29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledger/src/proofs/public_input/prepared_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl PreparedStatement {
172172
uses_lookup.to_field_elements(&mut fields);
173173

174174
if uses_lookup {
175-
fields.push(lookup_value.unwrap());
175+
fields.push(lookup_value.unwrap_or(Fq::zero()));
176176
} else {
177177
fields.push(Fq::zero());
178178
}

0 commit comments

Comments
 (0)