Skip to content

Commit ed94472

Browse files
committed
remove todo
1 parent c2eb889 commit ed94472

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/katana/feeder-gateway/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ katana-rpc-types.workspace = true
1212

1313
reqwest.workspace = true
1414
serde.workspace = true
15-
serde_json.workspace = true
1615
starknet.workspace = true
1716
thiserror.workspace = true
1817
url.workspace = true

crates/katana/rpc/rpc-types/src/transaction.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,18 @@ impl From<TxWithHash> for Tx {
264264
let transaction_hash = value.hash;
265265
let tx = match value.transaction {
266266
InternalTx::Invoke(invoke) => match invoke {
267-
InvokeTx::V0(..) => {
268-
todo!()
269-
}
267+
InvokeTx::V0(tx) => starknet::core::types::Transaction::Invoke(
268+
starknet::core::types::InvokeTransaction::V0(
269+
starknet::core::types::InvokeTransactionV0 {
270+
transaction_hash,
271+
calldata: tx.calldata,
272+
signature: tx.signature,
273+
max_fee: tx.max_fee.into(),
274+
contract_address: tx.contract_address.into(),
275+
entry_point_selector: tx.entry_point_selector,
276+
},
277+
),
278+
),
270279

271280
InvokeTx::V1(tx) => starknet::core::types::Transaction::Invoke(
272281
starknet::core::types::InvokeTransaction::V1(

0 commit comments

Comments
 (0)