Skip to content

Commit

Permalink
remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Dec 2, 2024
1 parent c2eb889 commit ed94472
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/katana/feeder-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 12 additions & 3 deletions crates/katana/rpc/rpc-types/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,18 @@ impl From<TxWithHash> 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(
Expand Down

0 comments on commit ed94472

Please sign in to comment.