add missing field

This commit is contained in:
Dario Rekowski on RockPI 2021-04-16 14:59:46 +00:00
parent 6ffff13061
commit 750ca3460c
2 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,6 @@
CREATE TABLE `transaction_send_coins` ( CREATE TABLE `transaction_send_coins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transaction_id` int(10) unsigned NOT NULL, `transaction_id` int(10) unsigned NOT NULL,
`public_key` binary(32) NOT NULL,
`sender_public_key` binary(32) NOT NULL, `sender_public_key` binary(32) NOT NULL,
`state_user_id` int(10) unsigned DEFAULT 0, `state_user_id` int(10) unsigned DEFAULT 0,
`receiver_public_key` binary(32) NOT NULL, `receiver_public_key` binary(32) NOT NULL,

View File

@ -154,6 +154,7 @@ class TransactionTransfer extends TransactionBase {
$transactionTransferEntity = $transactionTransferTable->newEntity(); $transactionTransferEntity = $transactionTransferTable->newEntity();
$transactionTransferEntity->transaction_id = $transaction_id; $transactionTransferEntity->transaction_id = $transaction_id;
$transactionTransferEntity->state_user_id = $senderUserId; $transactionTransferEntity->state_user_id = $senderUserId;
$transactionTransferEntity->sender_public_key = $senderAmount->getPubkey();
$transactionTransferEntity->receiver_public_key = $receiver; $transactionTransferEntity->receiver_public_key = $receiver;
$transactionTransferEntity->receiver_user_id = $receiverUserId; $transactionTransferEntity->receiver_user_id = $receiverUserId;
$transactionTransferEntity->amount = $senderAmount->getAmount(); $transactionTransferEntity->amount = $senderAmount->getAmount();