parent
02be3f815d
commit
5a54ce5903
@ -77,7 +77,7 @@ class Str extends SolidityType implements IType
|
|||||||
public function outputFormat($value, $name)
|
public function outputFormat($value, $name)
|
||||||
{
|
{
|
||||||
$strLen = mb_substr($value, 0, 64);
|
$strLen = mb_substr($value, 0, 64);
|
||||||
$strValue = mb_substr($value, 64, 64);
|
$strValue = mb_substr($value, 64);
|
||||||
$match = [];
|
$match = [];
|
||||||
|
|
||||||
if (preg_match('/^[0]+([a-f0-9]+)$/', $strLen, $match) === 1) {
|
if (preg_match('/^[0]+([a-f0-9]+)$/', $strLen, $match) === 1) {
|
||||||
@ -87,4 +87,4 @@ class Str extends SolidityType implements IType
|
|||||||
|
|
||||||
return Utils::hexToBin($strValue);
|
return Utils::hexToBin($strValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user