Skip to content

Commit

Permalink
feat(torii_block_timestamp): Updated arguments order to align with ot…
Browse files Browse the repository at this point in the history
…her functions
  • Loading branch information
akhercha committed Mar 21, 2024
1 parent 24d9caa commit 1463749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/torii/core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<P: Provider + Sync> Engine<P> {
block_tx.send(block_number).await?;
}

Self::process_block(self, block_number, event.block_hash.unwrap(), block_timestamp)
Self::process_block(self, block_number, block_timestamp, event.block_hash.unwrap())
.await?;

Check warning on line 182 in crates/torii/core/src/engine.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/core/src/engine.rs#L182

Added line #L182 was not covered by tests
info!(target: "torii_core::engine", block_number = %block_number, "Processed block");

Expand Down Expand Up @@ -267,8 +267,8 @@ impl<P: Provider + Sync> Engine<P> {
async fn process_block(
&mut self,
block_number: u64,
block_hash: FieldElement,
block_timestamp: u64,
block_hash: FieldElement,
) -> Result<()> {
for processor in &self.processors.block {
processor
Expand Down

0 comments on commit 1463749

Please sign in to comment.