From db5815ec09e44ac0757c44539bfb8fd5806e1d79 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Tue, 22 Jul 2025 13:44:52 -0300 Subject: [PATCH] add docstrings --- sequencer_rpc/src/process.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sequencer_rpc/src/process.rs b/sequencer_rpc/src/process.rs index 0068437..f8dc7da 100644 --- a/sequencer_rpc/src/process.rs +++ b/sequencer_rpc/src/process.rs @@ -163,6 +163,9 @@ impl JsonHandler { respond(helperstruct) } + + /// Returns the transaction corresponding to the given hash, if it exists in the blockchain. + /// The hash must be a valid hex string of the correct length. async fn process_get_transaction_by_hash(&self, request: Request) -> Result { let get_transaction_req = GetTransactionByHashRequest::parse(Some(request.params))?; let bytes: Vec = hex::decode(get_transaction_req.hash)