forked from lthn/blockchain
added wrap address detection support in UI
This commit is contained in:
parent
580f354c1c
commit
69eb2dc38a
2 changed files with 2 additions and 1 deletions
|
|
@ -40,3 +40,4 @@
|
|||
#define API_RETURN_CODE_TX_IS_TOO_BIG "TX_IS_TOO_BIG"
|
||||
#define API_RETURN_CODE_TX_REJECTED "TX_REJECTED"
|
||||
#define API_RETURN_CODE_HTLC_ORIGIN_HASH_MISSMATCHED "HTLC_ORIGIN_HASH_MISSMATCHED"
|
||||
#define API_RETURN_CODE_WRAP "WRAP"
|
||||
|
|
@ -1755,7 +1755,7 @@ std::string wallets_manager::validate_address(const std::string& addr_str, std::
|
|||
currency::account_public_address acc = AUTO_VAL_INIT(acc);
|
||||
if (currency::is_address_like_wrapped(addr_str))
|
||||
{
|
||||
return API_RETURN_CODE_TRUE;
|
||||
return API_RETURN_CODE_WRAP;
|
||||
}
|
||||
else if (currency::get_account_address_and_payment_id_from_str(acc, payment_id, addr_str))
|
||||
return API_RETURN_CODE_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue