Skip to content

Commit 410d5fa

Browse files
committed
sendtomainchain_base should be decoding parent destination
1 parent ec62262 commit 410d5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4744,7 +4744,7 @@ UniValue sendtomainchain_base(const JSONRPCRequest& request)
47444744

47454745
EnsureWalletIsUnlocked(pwallet);
47464746

4747-
CTxDestination parent_address = DecodeDestination(request.params[0].get_str());
4747+
CTxDestination parent_address = DecodeParentDestination(request.params[0].get_str());
47484748
if (!IsValidDestination(parent_address))
47494749
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address");
47504750

0 commit comments

Comments
 (0)