forked from lthn/blockchain
minor fix in transform_str_to_addr()
This commit is contained in:
parent
bc1152ede5
commit
68772f3e04
1 changed files with 4 additions and 1 deletions
|
|
@ -158,7 +158,10 @@ namespace currency
|
|||
account_public_address transform_str_to_addr(const std::string& str)
|
||||
{
|
||||
account_public_address ad = AUTO_VAL_INIT(ad);
|
||||
get_account_address_from_str(ad, str);
|
||||
if (!get_account_address_from_str(ad, str))
|
||||
{
|
||||
LOG_ERROR("cannot parse address from string: " << str);
|
||||
}
|
||||
return ad;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue