diff --git a/crates/katana/core/src/hooker.rs b/crates/katana/core/src/hooker.rs index 633a2a5a00..f986cbf424 100644 --- a/crates/katana/core/src/hooker.rs +++ b/crates/katana/core/src/hooker.rs @@ -43,7 +43,7 @@ pub trait KatanaHooker { /// # Arguments /// /// * `transaction` - The invoke transaction to be verified. - async fn verify_invoke_tx_before_pool(&self, transaction: BroadcastedInvokeTransaction) + async fn verify_invoke_tx_before_pool(&mut self, transaction: BroadcastedInvokeTransaction) -> bool; /// Runs code right before a message to starknet @@ -55,7 +55,7 @@ pub trait KatanaHooker { /// /// * `call` - The `Call` to inspect, built from the /// message. - async fn verify_tx_for_starknet(&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.