Skip to content

Commit

Permalink
fix xAddressToClassicAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
lessmore92 committed Jan 23, 2021
1 parent b09681f commit 7cbc059
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 @@ -145,7 +145,7 @@ public function encodeXAddress(Buffer $accountId, $tag, bool $test = false): str

public function xAddressToClassicAddress(string $xAddress)
{
list($accountId, $tag, $test) = $this->decodeXAddress($xAddress);
list($accountId, $tag, $test) = array_values($this->decodeXAddress($xAddress));
$classicAddress = $this->encodeAccountID($accountId);
return [
'classicAddress' => $classicAddress,
Expand Down

0 comments on commit 7cbc059

Please sign in to comment.