There is an issue with this check now because the "?" Symbol was removed, as a result of this preg_match does not match for 'bytes'.

The correct version should be:
"return (preg_match('/^bytes([0-9]{1,})?([([0-9])])$/', $name) === 1);"
This commit is contained in:
Roberts Siminidi 2018-07-10 14:11:31 +03:00
parent 1fb7762eb7
commit 184bc53f9d

View File

@ -36,7 +36,7 @@ class Bytes extends SolidityType implements IType
*/
public function isType($name)
{
return (preg_match('/^bytes([0-9]{1,})(\[([0-9]*)\])*$/', $name) === 1);
return (preg_match('/^bytes([0-9]{1,})?(\[([0-9]*)\])*$/', $name) === 1);
}
/**