Browse Source

fix payment sender

main
ghost 10 months ago
parent
commit
9317ec3c1c
  1. 13
      src/Controller/RoomController.php

13
src/Controller/RoomController.php

@ -639,7 +639,7 @@ class RoomController extends AbstractController
) >= $this->getParameter('app.add.post.cost.kva') ) >= $this->getParameter('app.add.post.cost.kva')
) { ) {
if ( if (
$txid = $client->kevaPut( $client->kevaPut(
$request->get('namespace'), $request->get('namespace'),
sprintf( sprintf(
'%s@%s', '%s@%s',
@ -648,15 +648,12 @@ class RoomController extends AbstractController
), ),
$request->get('message') $request->get('message')
) )
) ) {
{
// Send amount to profit address // Send amount to profit address
$client->sendToAddress( $client->sendFrom(
$username,
$this->getParameter('app.kevacoin.profit.address'), $this->getParameter('app.kevacoin.profit.address'),
$this->getParameter('app.add.post.cost.kva'), $this->getParameter('app.add.post.cost.kva')
$txid,
null,
true // subtract from amount
); );
// Register event time // Register event time

Loading…
Cancel
Save