argotorg / argotorg/solidity

View-pure checker misses reads from storage pointer variable

Open
#11,573 4 comments 0 reactions 1 assignee Claimed by @chriseth View on GitHub
bug :bug: high effort medium impact must have should report error
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

```
contract Storage {
struct S { uint x; }
S t;

function store(S storage x) internal {
S memory y = x;
}

function f() public {
store(t);
}
}
```
Function `store` is considered `pure`. Same if `x` is used in function call conversion to memory. Reading members from `x` is properly detected.

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.