Skip to content

Commit

Permalink
Add TODO about fetching classes at current block
Browse files Browse the repository at this point in the history
  • Loading branch information
notlesh committed Aug 14, 2024
1 parent e1f040a commit 7271c79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bin/prove_block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ async fn main() -> Result<(), Box<dyn Error>> {

// 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");
Expand Down

0 comments on commit 7271c79

Please sign in to comment.