Using correct lbry_settings for walllet_balance
This commit is contained in:
parent
6573253d5a
commit
7149a65402
3 changed files with 7 additions and 3 deletions
|
@ -35,12 +35,15 @@ class LBRY_Daemon
|
||||||
*/
|
*/
|
||||||
public function wallet_balance($address = '')
|
public function wallet_balance($address = '')
|
||||||
{
|
{
|
||||||
$address = $address ?? get_option(LBRY_WALLET);
|
$address = $address ?: get_option(LBRY_SETTINGS)[LBRY_WALLET];
|
||||||
|
error_log('Address: ' . $address);
|
||||||
$result = $this->request('wallet_balance', array(
|
$result = $this->request('wallet_balance', array(
|
||||||
'address' => $address,
|
'address' => $address,
|
||||||
'include_unconfirmed' => false
|
'include_unconfirmed' => true
|
||||||
));
|
));
|
||||||
|
|
||||||
|
error_log($result);
|
||||||
|
|
||||||
return json_decode($result)->result;
|
return json_decode($result)->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class LBRY_Speech
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->parser = new LBRY_Speech_Parser();
|
$this->parser = new LBRY_Speech_Parser();
|
||||||
add_action('save_post', $this->upload_assets);
|
add_action('save_post', array($this, 'upload_assets'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,6 +4,7 @@ $wallet_balance = $LBRY->daemon->wallet_balance();
|
||||||
$channel_list = $LBRY->daemon->channel_list();
|
$channel_list = $LBRY->daemon->channel_list();
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<h1><?= esc_html(get_admin_page_title()); ?></h1>
|
<h1><?= esc_html(get_admin_page_title()); ?></h1>
|
||||||
|
|
||||||
<h2>Your wallet amount:</h2>
|
<h2>Your wallet amount:</h2>
|
||||||
|
|
Loading…
Reference in a new issue