From 613834ab11b5e1b0d37256960d1c1c36f736817c Mon Sep 17 00:00:00 2001 From: bexan Date: Fri, 23 Feb 2024 18:32:57 +0100 Subject: [PATCH] Update self argument --- crates/katana/core/src/hooker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.