Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed unused variable
Browse files Browse the repository at this point in the history
chudkowsky committed Oct 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a65bb40 commit 5356d15
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions crates/saya/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ use katana_primitives::block::{BlockNumber, FinalityStatus, SealedBlock, SealedB
use katana_primitives::state::StateUpdatesWithDeclaredClasses;
use katana_primitives::transaction::Tx;
use katana_rpc_types::trace::TxExecutionInfo;
use prover::persistent::{BatcherCall, BatcherInput, PublishedStateDiff, StarknetOsOutput};
use prover::persistent::{PublishedStateDiff, StarknetOsOutput};
use prover::{extract_execute_calls, HttpProverParams, ProveProgram, ProverIdentifier};
pub use prover_sdk::access_key::ProverAccessKey;
use prover_sdk::ProverResult;
@@ -195,30 +195,6 @@ impl Saya {
match self.config.mode {
SayaMode::Persistent => {
let num_blocks = params.len() as u64;
let calls = params
.into_iter()
.enumerate()
.map(|(i, p)| self.process_block(block + i as u64, p))
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.flatten()
.flat_map(|(_, c)| c)
.map(|c| BatcherCall {
to: c.to,
selector: c.selector,
calldata: c.calldata,
starknet_messages: Vec::new(), // TODO: Fill messages.
appchain_messages: Vec::new(),
})
.collect::<Vec<_>>();

let _input = BatcherInput {
calls,
block_number: Felt::from(block),
prev_state_root: mock_state_hash,
block_hash: Felt::from(0u64),
};

mock_state_hash += Felt::ONE;

info!(target: LOG_TARGET, "Proving {} blocks.", num_blocks);

0 comments on commit 5356d15

Please sign in to comment.