Skip to content

Commit 125431e

Browse files
committed
refactor: RPCErrorFromPSBTError to RPCErrorFromPSBTResult
1 parent 5959096 commit 125431e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target)
379379
return unsigned_target;
380380
}
381381

382-
RPCErrorCode RPCErrorFromPSBTError(PSBTResult result)
382+
RPCErrorCode RPCErrorFromPSBTResult(PSBTResult result)
383383
{
384384
switch (result) {
385385
case PSBTResult::UNSUPPORTED:
@@ -405,7 +405,7 @@ RPCErrorCode RPCErrorFromTransactionError(TransactionError terr)
405405

406406
UniValue JSONRPCPSBTError(PSBTResult result)
407407
{
408-
return JSONRPCError(RPCErrorFromPSBTError(result), PSBTResultString(result).original);
408+
return JSONRPCError(RPCErrorFromPSBTResult(result), PSBTResultString(result).original);
409409
}
410410

411411
UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_string)

0 commit comments

Comments
 (0)