mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
sendtomainchain_base should be decoding parent destination
This commit is contained in:
parent
ec62262c51
commit
410d5fa083
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue