Return Items list from Address_List

This commit is contained in:
Paul Kirby 2020-01-27 17:04:37 -06:00
parent d39503de10
commit d29fb3b12b
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ class LBRY_Admin
public function wallet_callback()
{
// Get first available account address from Daemon
$address = LBRY()->daemon->address_list()->items;
$address = LBRY()->daemon->address_list();
$address = is_array($address) && !empty($address) ? $address[0]->address : '';
printf(
'<input type="text" id="%1$s" name="%2$s[%1$s]" value="%3$s" readonly />',

View file

@ -58,7 +58,7 @@ class LBRY_Daemon
);
try {
$result = $this->request('address_list', $params);
return $result->result;
return $result->result->items;
} catch (LBRYDaemonException $e) {
$this->logger->log('address_list error', $e->getMessage() . ' | Code: ' . $e->getCode());
LBRY()->notice->set_notice('error', 'Issue getting address list.');