Skip to content

Commit

Permalink
Merge pull request #77 from lsmelan/lsmelan-patch-1
Browse files Browse the repository at this point in the history
Fix: issue #71
  • Loading branch information
sc0Vu authored May 18, 2018
2 parents 02be3f8 + 5a54ce5 commit 831d2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Contracts/Types/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function inputFormat($value, $name)
public function outputFormat($value, $name)
{
$strLen = mb_substr($value, 0, 64);
$strValue = mb_substr($value, 64, 64);
$strValue = mb_substr($value, 64);
$match = [];

if (preg_match('/^[0]+([a-f0-9]+)$/', $strLen, $match) === 1) {
Expand All @@ -87,4 +87,4 @@ public function outputFormat($value, $name)

return Utils::hexToBin($strValue);
}
}
}

0 comments on commit 831d2eb

Please sign in to comment.