Skip to content

Commit

Permalink
Limit event data (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner authored Jul 11, 2023
1 parent 4249cb6 commit d6593e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Events/Substrate/MultiTokens/TokenMinted.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(Model $token, Model $issuer, Model $recipient, strin
new Channel($token->collection->owner->address),
new Channel("collection;{$this->broadcastData['collectionId']}"),
new Channel("token;{$this->broadcastData['tokenId']}"),
new Channel($recipient),
new Channel($recipient->address),
new PlatformAppChannel(),
];
}
Expand Down
8 changes: 4 additions & 4 deletions src/Events/Substrate/MultiTokens/TokenTransferred.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ public function __construct(Model $token, Model $from, Model $recipient, string
'idempotencyKey' => $transaction?->idempotency_key,
'collectionId' => $token->collection->collection_chain_id,
'tokenId' => $token->token_chain_id,
'from' => $from,
'recipient' => $recipient,
'from' => $from->address,
'recipient' => $recipient->address,
'amount' => $amount,
];

$this->broadcastChannels = [
new Channel($token->collection->owner->address),
new Channel("collection;{$token->collection->collection_chain_id}"),
new Channel("token;{$this->broadcastData['tokenId']}"),
new Channel($from),
new Channel($recipient),
new Channel($from->address),
new Channel($recipient->address),
new PlatformAppChannel(),
];
}
Expand Down

0 comments on commit d6593e1

Please sign in to comment.