Commit 830b2024 authored by xiphon's avatar xiphon

MoneroNotify: 'height' argument might be undefined (wallet:notify)

parent 76e82307
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace App\Coin; namespace App\Coin;
use App\Deposit;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Monero\WalletCommon; use Monero\WalletCommon;
...@@ -16,7 +17,7 @@ class CoinMonero implements Coin ...@@ -16,7 +17,7 @@ class CoinMonero implements Coin
public function onNotifyGetTransactions(Command $command, WalletCommon $wallet) public function onNotifyGetTransactions(Command $command, WalletCommon $wallet)
{ {
$min_height = $command->argument('height') ?? Deposit::max('block_received'); $min_height = $command->arguments()['height'] ?? Deposit::max('block_received');
return $wallet->scanIncomingTransfers(max($min_height, 50) - 50); return $wallet->scanIncomingTransfers(max($min_height, 50) - 50);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment