Skip to content

Commit

Permalink
[PLA-1726] Fixes TokenUnreserved websocket event (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio authored Apr 16, 2024
1 parent 14f7bff commit 7b6f858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Events/Substrate/MultiTokens/TokenUnreserved.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Enjin\Platform\Events\Substrate\MultiTokens;

use Enjin\BlockchainTools\HexConverter;
use Enjin\Platform\Channels\PlatformAppChannel;
use Enjin\Platform\Enums\Substrate\PalletIdentifier;
use Enjin\Platform\Events\PlatformBroadcastEvent;
use Illuminate\Broadcasting\Channel;
use Illuminate\Database\Eloquent\Model;
Expand All @@ -23,7 +23,7 @@ public function __construct(Model $collection, Model $token, Model $wallet, $eve
'tokenId' => $token->token_chain_id,
'wallet' => $wallet->address,
'amount' => $event->amount,
'reserveId' => HexConverter::hexToString($event->reserveId),
'reserveId' => PalletIdentifier::from($event->reserveId)->name,
];

$this->broadcastChannels = [
Expand Down

0 comments on commit 7b6f858

Please sign in to comment.