From 02cdf334798e98651f3cd059b35bf069244136b4 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 29 Oct 2023 22:38:06 +0800 Subject: [PATCH] fix: incorrect error code for tx hash not found (#1115) --- crates/katana/rpc/src/api/starknet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/katana/rpc/src/api/starknet.rs b/crates/katana/rpc/src/api/starknet.rs index 3d387756f7..cf6505be69 100644 --- a/crates/katana/rpc/src/api/starknet.rs +++ b/crates/katana/rpc/src/api/starknet.rs @@ -31,7 +31,7 @@ pub enum StarknetApiError { #[error("Block not found")] BlockNotFound = 24, #[error("Transaction hash not found")] - TxnHashNotFound = 25, + TxnHashNotFound = 29, #[error("Invalid transaction index in a block")] InvalidTxnIndex = 27, #[error("Class hash not found")]