Commit 56653670 authored by Diego Salazar's avatar Diego Salazar

Merge branch 'fix-monero-nofity' into 'master'

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

See merge request monero-project/ccs-back!14
parents bb6c8ef6 830b2024
......@@ -2,6 +2,7 @@
namespace App\Coin;
use App\Deposit;
use Illuminate\Console\Command;
use Monero\WalletCommon;
......@@ -16,7 +17,7 @@ class CoinMonero implements Coin
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);
}
......
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