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:
parent
1fb7762eb7
commit
184bc53f9d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user