diff --git a/src/Contracts/Types/Str.php b/src/Contracts/Types/Str.php index 04e75ba..344f070 100644 --- a/src/Contracts/Types/Str.php +++ b/src/Contracts/Types/Str.php @@ -77,7 +77,7 @@ class Str extends SolidityType implements IType 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) { @@ -87,4 +87,4 @@ class Str extends SolidityType implements IType return Utils::hexToBin($strValue); } -} \ No newline at end of file +}