Skip to content

Commit

Permalink
Update self argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ybensacq committed Feb 23, 2024
1 parent 3ac6775 commit 613834a
Showing 1 changed file with 2 additions and 2 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(&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(&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

0 comments on commit 613834a

Please sign in to comment.