Skip to content

Commit

Permalink
remove old update
Browse files Browse the repository at this point in the history
  • Loading branch information
ybensacq committed Apr 4, 2024
1 parent 00f14d4 commit 06509f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/katana/core/src/hooker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub trait KatanaHooker {
/// # Arguments
///
/// * `transaction` - The invoke transaction to be verified.
async fn verify_invoke_tx_before_pool(&mut self, transaction: BroadcastedInvokeTransaction)
async fn verify_invoke_tx_before_pool(mut self, transaction: BroadcastedInvokeTransaction)
-> bool;

/// Runs code right before a message to starknet
Expand All @@ -55,7 +55,7 @@ pub trait KatanaHooker {
///
/// * `call` - The `Call` to inspect, built from the
/// message.
async fn verify_tx_for_starknet(&mut self, call: Call) -> bool;
async fn verify_tx_for_starknet(mut self, call: Call) -> bool;

/// Runs when Solis attempts to execute an order on Starknet,
/// but it fails.
Expand Down
2 changes: 1 addition & 1 deletion crates/katana/rpc/rpc/src/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ impl StarknetApiServer for StarknetApi {
.inner
.sequencer
.hooker
.write()
.read()
.await
.verify_invoke_tx_before_pool(invoke_transaction.0.clone())
.await
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/types-test/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version = 1

[[package]]
name = "dojo"
version = "0.5.0"
version = "0.4.4"
dependencies = [
"dojo_plugin",
]
Expand Down

0 comments on commit 06509f3

Please sign in to comment.