From e8b5e4ac9314e2d5cd0380e3fc9a5fa8dcfa496e Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 4 Apr 2023 19:11:59 +0300 Subject: [PATCH] trivial(doc): fix typos in getrawtransaction and decoderawtransaction help texts (#5290) ## Issue being fixed or feature implemented fix typos in getrawtransaction and decoderawtransaction help texts ## What was done? tweak field name to match https://github.com/dashpay/dash/blob/develop/src/core_write.cpp#L192 ## How Has This Been Tested? ## Breaking Changes n/a ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation **For repository code-owners and collaborators only** - [x] I have assigned this pull request to a milestone --- src/rpc/rawtransaction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 9f90b07b0d..ff318b9344 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -143,7 +143,7 @@ static UniValue getrawtransaction(const JSONRPCRequest& request) {RPCResult::Type::STR_HEX, "txid", "The transaction id (same as provided)"}, {RPCResult::Type::NUM, "size", "The serialized transaction size"}, {RPCResult::Type::NUM, "version", "The version"}, - {RPCResult::Type::NUM, "version", "The type"}, + {RPCResult::Type::NUM, "type", "The type"}, {RPCResult::Type::NUM_TIME, "locktime", "The lock time"}, {RPCResult::Type::ARR, "vin", "", { @@ -494,7 +494,7 @@ static UniValue decoderawtransaction(const JSONRPCRequest& request) {RPCResult::Type::STR_HEX, "txid", "The transaction id"}, {RPCResult::Type::NUM, "size", "The transaction size"}, {RPCResult::Type::NUM, "version", "The version"}, - {RPCResult::Type::NUM, "version", "The type"}, + {RPCResult::Type::NUM, "type", "The type"}, {RPCResult::Type::NUM_TIME, "locktime", "The lock time"}, {RPCResult::Type::ARR, "vin", "", {