Fix: issue #71

- Not to limit the size of the string to 64 characters
This commit is contained in:
Luiz Smelán 2018-05-02 17:14:53 +01:00 committed by GitHub
parent 02be3f815d
commit 5a54ce5903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}