Merge 15b11032f1
into cede0cc410
This commit is contained in:
commit
480da43f5a
@ -59,7 +59,7 @@ class Str extends SolidityType implements IType
|
|||||||
*/
|
*/
|
||||||
public function inputFormat($value, $name)
|
public function inputFormat($value, $name)
|
||||||
{
|
{
|
||||||
$value = Utils::toHex($value);
|
$value = implode('', unpack('H*', $value));
|
||||||
$prefix = IntegerFormatter::format(mb_strlen($value) / 2);
|
$prefix = IntegerFormatter::format(mb_strlen($value) / 2);
|
||||||
$l = floor((mb_strlen($value) + 63) / 64);
|
$l = floor((mb_strlen($value) + 63) / 64);
|
||||||
$padding = (($l * 64 - mb_strlen($value) + 1) >= 0) ? $l * 64 - mb_strlen($value) : 0;
|
$padding = (($l * 64 - mb_strlen($value) + 1) >= 0) ? $l * 64 - mb_strlen($value) : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user