From 830b20249383ad274ec5db75db754fa4d755da4d Mon Sep 17 00:00:00 2001 From: xiphon Date: Tue, 21 Apr 2020 17:15:47 +0000 Subject: [PATCH] MoneroNotify: 'height' argument might be undefined (wallet:notify) --- app/Coin/CoinMonero.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Coin/CoinMonero.php b/app/Coin/CoinMonero.php index 1d374ac..667a968 100644 --- a/app/Coin/CoinMonero.php +++ b/app/Coin/CoinMonero.php @@ -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); } -- GitLab