Commit d0bed8fe authored by xiphon's avatar xiphon

WalletNotify: use new Deposit Model instance to create a deposit

parent 13f28cc5
......@@ -140,15 +140,14 @@ class walletNotify extends Command
*/
public function createDeposit(Transaction $transaction)
{
return Deposit::create([
'tx_id' => $transaction->id,
'amount' => $transaction->amount,
'confirmations' => $transaction->confirmations,
'payment_id' => $transaction->paymentId,
'time_received' => $transaction->time_received,
'block_received' => $transaction->blockHeight,
]);
$deposit = new Deposit;
$deposit->tx_id = $transaction->id;
$deposit->amount = $transaction->amount;
$deposit->confirmations = $transaction->confirmations;
$deposit->payment_id = $transaction->paymentId;
$deposit->time_received = $transaction->time_received;
$deposit->block_received = $transaction->block_height;
$deposit->save();
}
}
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