crytic / crytic/slither

[Bug]: Custom error parsing problem

Open
#1,704 0 comments 0 reactions 0 assignees View on GitHub
bug parsing
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the issue:

An error is returned by Slither's parser on: a custom error that includes an array whose length is specified using a constant literal.

### Code example to reproduce the issue:

```solidity
pragma solidity ^0.8.4;

uint256 constant MAX = 1000;
error BadError(
uint32[MAX] y
);

contract VendingMachine {
}
```

### Version:

0.9.2

### Relevant log output:

```shell
( is not valid for find_variable
````
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.