Fix infinite recursion in function call graph generator due to recursive constant references.

This commit is contained in:
chriseth
2021-06-08 16:39:30 +02:00
parent 7d8a4e63d8
commit 3eaa37030a
3 changed files with 16 additions and 7 deletions
@@ -0,0 +1,8 @@
contract C {
uint constant a = uint(keccak256(abi.encode(d)));
uint c = uint(keccak256(abi.encode(d)));
uint constant d = a;
}
// ----
// TypeError 6161: (15-63): The value of the constant a has a cyclic dependency via d.
// TypeError 6161: (110-129): The value of the constant d has a cyclic dependency via a.