crytic / crytic/slither

[Bug]: Library call function is not an instance of `Function`

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

Description

### Describe the issue:

Library call function is not an instance of `Function`
Related with this library call here https://github.com/code-423n4/2023-01-timeswap/blob/ef4c84fb8535aad8abd6b67cc45d994337ec4514/packages/v2-option/src/TimeswapV2Option.sol#L112

### Code example to reproduce the issue:

```
git clone https://github.com/code-423n4/2023-01-timeswap
yarn
cd v2-token
slither .
```

### Version:

0.9.2

### Relevant log output:

```shell
File "/Users/alpharush/tob/slither/slither/core/cfg/node.py", line 920, in _find_read_write_call
assert isinstance(ir.function, Function)
AssertionError
```

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.