Return Items list from Address_List
This commit is contained in:
parent
d39503de10
commit
d29fb3b12b
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class LBRY_Admin
|
||||||
public function wallet_callback()
|
public function wallet_callback()
|
||||||
{
|
{
|
||||||
// Get first available account address from Daemon
|
// 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 : '';
|
$address = is_array($address) && !empty($address) ? $address[0]->address : '';
|
||||||
printf(
|
printf(
|
||||||
'<input type="text" id="%1$s" name="%2$s[%1$s]" value="%3$s" readonly />',
|
'<input type="text" id="%1$s" name="%2$s[%1$s]" value="%3$s" readonly />',
|
||||||
|
|
|
@ -58,7 +58,7 @@ class LBRY_Daemon
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
$result = $this->request('address_list', $params);
|
$result = $this->request('address_list', $params);
|
||||||
return $result->result;
|
return $result->result->items;
|
||||||
} catch (LBRYDaemonException $e) {
|
} catch (LBRYDaemonException $e) {
|
||||||
$this->logger->log('address_list error', $e->getMessage() . ' | Code: ' . $e->getCode());
|
$this->logger->log('address_list error', $e->getMessage() . ' | Code: ' . $e->getCode());
|
||||||
LBRY()->notice->set_notice('error', 'Issue getting address list.');
|
LBRY()->notice->set_notice('error', 'Issue getting address list.');
|
||||||
|
|
Loading…
Reference in a new issue