1
0
Fork 0
forked from lthn/blockchain

added wrap address detection support in UI

This commit is contained in:
cryptozoidberg 2021-08-21 19:51:01 +02:00
parent 580f354c1c
commit 69eb2dc38a
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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;