Skip to content

Commit

Permalink
remove handle version two method
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries committed Jul 30, 2024
1 parent da97211 commit d83a8e4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Transactions/Deserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ public function deserialize(): Transaction
$transaction->data['amount'] = '0';
}

$transaction = $this->handleVersionTwo($transaction);

return $transaction;
}

/**
* Handle the deserialization of transaction data with a version of 2.0.
*/
public function handleVersionTwo(Transaction $transaction): Transaction
{
$transaction->data['id'] = Hash::sha256($transaction->serialize())->getHex();

return $transaction;
Expand Down

0 comments on commit d83a8e4

Please sign in to comment.