This commit is contained in:
Roberts Siminidi 2022-03-08 14:58:35 +01:00 committed by GitHub
commit f37235e0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class Bytes extends SolidityType implements IType
*/ */
public function isType($name) 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);
} }
/** /**