sendtomainchain_base should be decoding parent destination

This commit is contained in:
Gregory Sanders 2019-04-10 14:12:49 -04:00
parent ec62262c51
commit 410d5fa083

View file

@ -4744,7 +4744,7 @@ UniValue sendtomainchain_base(const JSONRPCRequest& request)
EnsureWalletIsUnlocked(pwallet);
CTxDestination parent_address = DecodeDestination(request.params[0].get_str());
CTxDestination parent_address = DecodeParentDestination(request.params[0].get_str());
if (!IsValidDestination(parent_address))
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address");