Skip to content

Commit

Permalink
fix encodeXAddress and support php 7.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
lessmore92 committed Jun 22, 2021
1 parent 7cbc059 commit da63338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RippleAddressCodec.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function classicAddressToXAddress(string $classicAddress, $tag, bool $tes

public function encodeXAddress(Buffer $accountId, $tag, bool $test = false): string
{
$flag = $tag === false ? 0 : $tag <= MAX_32_BIT_UNSIGNED_INT ? 1 : 2;
$flag = $tag === false ? 0 : ($tag <= MAX_32_BIT_UNSIGNED_INT ? 1 : 2);
if ($flag === 2)
{
throw new Exception('Invalid tag');
Expand Down

0 comments on commit da63338

Please sign in to comment.