From 5a54ce5903a402168bc1b781faab5d65fdb83cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Smel=C3=A1n?= Date: Wed, 2 May 2018 17:14:53 +0100 Subject: [PATCH] Fix: issue #71 - Not to limit the size of the string to 64 characters --- src/Contracts/Types/Str.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}