Skip to content

Commit

Permalink
proofs cannot be empty at starknet
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Dec 19, 2024
1 parent 3eb89ff commit 78780da
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ where
};

// FIXME: commitment proof should be in the ByteArray format, not Vec<Felt>
let commitment_proof = StateProof { proof: vec![] };
let commitment_proof = StateProof {
proof: vec![Felt::ONE],
};

let proof_height = CairoHeight {
revision_number: payload.update_height.revision_number(),
Expand Down Expand Up @@ -296,7 +298,9 @@ where
// FIXME: commitment proof should be in the ByteArray format, not Vec<Felt>
// TODO(rano): submitting dummy proofs
// proof can't be empty
let commitment_proof = StateProof { proof: vec![] };
let commitment_proof = StateProof {
proof: vec![Felt::ONE],
};

let proof_height = CairoHeight {
revision_number: counterparty_payload.update_height.revision_number(),
Expand Down Expand Up @@ -353,7 +357,9 @@ where
// FIXME: commitment proof should be in the ByteArray format, not Vec<Felt>
// TODO(rano): submitting dummy proofs
// proof can't be empty
let commitment_proof = StateProof { proof: vec![] };
let commitment_proof = StateProof {
proof: vec![Felt::ONE],
};

let proof_height = CairoHeight {
revision_number: counterparty_payload.update_height.revision_number(),
Expand Down

0 comments on commit 78780da

Please sign in to comment.