From ed94472f7f32bf1c6e7764644a04475cdb8ffa2c Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Mon, 2 Dec 2024 14:19:48 -0500 Subject: [PATCH] remove todo --- Cargo.lock | 1 - crates/katana/feeder-gateway/Cargo.toml | 1 - crates/katana/rpc/rpc-types/src/transaction.rs | 15 ++++++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c01e5dfac7..6b6939c18b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8425,7 +8425,6 @@ dependencies = [ "katana-rpc-types", "reqwest 0.11.27", "serde", - "serde_json", "starknet 0.12.0", "thiserror", "tokio", diff --git a/crates/katana/feeder-gateway/Cargo.toml b/crates/katana/feeder-gateway/Cargo.toml index 9aa836b895..281683a171 100644 --- a/crates/katana/feeder-gateway/Cargo.toml +++ b/crates/katana/feeder-gateway/Cargo.toml @@ -12,7 +12,6 @@ katana-rpc-types.workspace = true reqwest.workspace = true serde.workspace = true -serde_json.workspace = true starknet.workspace = true thiserror.workspace = true url.workspace = true diff --git a/crates/katana/rpc/rpc-types/src/transaction.rs b/crates/katana/rpc/rpc-types/src/transaction.rs index 024db498ef..76bae94db5 100644 --- a/crates/katana/rpc/rpc-types/src/transaction.rs +++ b/crates/katana/rpc/rpc-types/src/transaction.rs @@ -264,9 +264,18 @@ impl From for Tx { let transaction_hash = value.hash; let tx = match value.transaction { InternalTx::Invoke(invoke) => match invoke { - InvokeTx::V0(..) => { - todo!() - } + InvokeTx::V0(tx) => starknet::core::types::Transaction::Invoke( + starknet::core::types::InvokeTransaction::V0( + starknet::core::types::InvokeTransactionV0 { + transaction_hash, + calldata: tx.calldata, + signature: tx.signature, + max_fee: tx.max_fee.into(), + contract_address: tx.contract_address.into(), + entry_point_selector: tx.entry_point_selector, + }, + ), + ), InvokeTx::V1(tx) => starknet::core::types::Transaction::Invoke( starknet::core::types::InvokeTransaction::V1(