Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner committed Jan 22, 2025
1 parent 34f86e3 commit 9eea9b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Enjin\Platform\Services\Processor\Substrate\Codec\Polkadart\PolkadartEvent;
use Enjin\Platform\Support\Account;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Log;

class TokenMutated extends Event implements PolkadartEvent
{
Expand All @@ -26,6 +27,9 @@ class TokenMutated extends Event implements PolkadartEvent
#[\Override]
public static function fromChain(array $data): self
{

Log::info('Token mutated chain data', $data);

$self = new self();

$self->extrinsicIndex = Arr::get($data, 'phase.ApplyExtrinsic');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public function run(): void

public function log(): void
{
Log::debug("Token {$this->event->tokenId} of collection {$this->event->collectionId} was mutated.");
Log::debug(
"Token {$this->event->tokenId} of collection {$this->event->collectionId} was mutated.",
$this->event->getParams(),
);
}

public function broadcast(): void
Expand Down

0 comments on commit 9eea9b9

Please sign in to comment.