diff --git a/src/Events/Global/TransactionCreated.php b/src/Events/Global/TransactionCreated.php index 6dae33dc..90042531 100644 --- a/src/Events/Global/TransactionCreated.php +++ b/src/Events/Global/TransactionCreated.php @@ -25,14 +25,14 @@ public function __construct($event, ?Model $transaction = null, ?array $extra = 'idempotencyKey' => $transaction->idempotency_key, ]; - $address = $transaction->wallet?->address ?? Account::daemon()->address; + $publicKey = $transaction->wallet?->public_key ?? Account::daemonPublicKey(); - if ($address == null) { + if ($publicKey == null) { return; } $this->broadcastChannels = [ - new Channel($address), + new Channel($publicKey), ]; } } diff --git a/src/Events/Global/TransactionUpdated.php b/src/Events/Global/TransactionUpdated.php index 348c2c2e..3c432c5e 100644 --- a/src/Events/Global/TransactionUpdated.php +++ b/src/Events/Global/TransactionUpdated.php @@ -28,14 +28,14 @@ public function __construct($event, ?Model $transaction = null, ?array $extra = 'idempotencyKey' => $transaction->idempotency_key, ]; - $address = $transaction->wallet?->address ?? Account::daemon()->address; + $publicKey = $transaction->wallet?->public_key ?? Account::daemonPublicKey(); - if ($address == null) { + if ($publicKey == null) { return; } $this->broadcastChannels = [ - new Channel($address), + new Channel($publicKey), ]; } }