Skip to content

Commit

Permalink
Merge branch 'main' into katana/simplify-in-memory-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Oct 22, 2024
2 parents 81b6fa7 + c2bbef9 commit a3bdf5e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ impl<'a> BlockExecutor<'a> for StarknetVMProcessor<'a> {
}

crate::utils::log_resources(&trace.actual_resources);
crate::utils::log_events(receipt.events());
}

ExecutionResult::Failed { error } => {
Expand Down
10 changes: 0 additions & 10 deletions crates/katana/executor/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ pub fn log_resources(resources: &TxResources) {
trace!(target: LOG_TARGET, usage = mapped_strings.join(" | "), "Transaction resource usage.");
}

pub fn log_events(events: &[Event]) {
for e in events {
trace!(
target: LOG_TARGET,
keys = e.keys.iter().map(|key| format!("{key:#x}")).collect::<Vec<_>>().join(", "),
"Event emitted.",
);
}
}

pub(crate) fn build_receipt(tx: TxRef<'_>, fee: TxFeeInfo, info: &TxExecInfo) -> Receipt {
let events = events_from_exec_info(info);
let revert_error = info.revert_error.clone();
Expand Down
3 changes: 1 addition & 2 deletions crates/torii/grpc/src/server/subscriptions/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ impl IndexerManager {
let id = rand::thread_rng().gen::<usize>();
let (sender, receiver) = channel(1);

let mut statement =
"SELECT head, tps, last_block_timestamp, contract_address FROM contracts".to_string();
let mut statement = "SELECT * FROM contracts".to_string();

let contracts: Vec<ContractUpdated> = if contract_address != Felt::ZERO {
statement += " WHERE id = ?";
Expand Down

0 comments on commit a3bdf5e

Please sign in to comment.