From 7271c799dbcbd32552e631e709f9901c86c610fa Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Wed, 14 Aug 2024 15:41:53 -0600 Subject: [PATCH] Add TODO about fetching classes at current block --- crates/bin/prove_block/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bin/prove_block/src/main.rs b/crates/bin/prove_block/src/main.rs index 72be254e..a476e5d1 100644 --- a/crates/bin/prove_block/src/main.rs +++ b/crates/bin/prove_block/src/main.rs @@ -439,6 +439,8 @@ async fn main() -> Result<(), Box> { // query storage proofs for each accessed contract let class_hashes: Vec<&Felt252> = class_hash_to_compiled_class_hash.keys().collect(); + // TODO: we fetch proofs here for block-1, but we probably also need to fetch at the current + // block, likely for contracts that are deployed in this block let class_proofs = get_class_proofs(&pathfinder_client, &args.rpc_provider, block_number - 1, &class_hashes[..]) .await .expect("Failed to fetch class proofs");