Skip to content

Commit

Permalink
katana: hooker update BroadcastedInvokeTransactionV3
Browse files Browse the repository at this point in the history
  • Loading branch information
ybensacq committed May 21, 2024
1 parent 8ba6ead commit b219de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/katana/core/src/hooker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::sequencer::KatanaSequencer;
use async_trait::async_trait;
use katana_executor::ExecutorFactory;
use starknet::accounts::Call;
use starknet::core::types::{BroadcastedInvokeTransaction, FieldElement};
use starknet::core::types::{BroadcastedInvokeTransactionV3, FieldElement};
use std::sync::Arc;
use tracing::{error, info};

Expand Down Expand Up @@ -44,7 +44,7 @@ pub trait KatanaHooker<EF: ExecutorFactory> {
/// # 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(&self, transaction: BroadcastedInvokeTransactionV3)
-> bool;

/// Runs code right before a message to starknet
Expand Down Expand Up @@ -108,7 +108,7 @@ impl<EF: ExecutorFactory + 'static + Send + Sync> KatanaHooker<EF> for DefaultKa

async fn verify_invoke_tx_before_pool(
&self,
transaction: BroadcastedInvokeTransaction,
transaction: BroadcastedInvokeTransactionV3,
) -> bool {
info!("HOOKER: verify_invoke_tx_before_pool called with transaction: {:?}", transaction);
true
Expand Down

0 comments on commit b219de6

Please sign in to comment.