Skip to content

Commit

Permalink
Merge pull request #2 from ybensacq/hooker-update-signature
Browse files Browse the repository at this point in the history
Update self argument
  • Loading branch information
ybensacq authored Feb 23, 2024
2 parents 3ac6775 + 613834a commit 61b0f17
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 61b0f17

Please sign in to comment.