You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opening the hitrate counter log file in VScode shows that "validInvestments": 0 are sometimes changed to 1 and then overwritten to 0 whilst only the didNotreachInvestmentCeiling counter increases.
Verify that (almost) all branches are hit using emit log statements.
Fix this to get the actual count as output.
I expect this happens in the for loops with respect to the keys length and a potential difference in the values length of the mapping and any checks on their respectives lengths that prevent reaching certain counting/copying for loops.
Alternative hypothesis is that the compiler/something sorts the mapping and/or struct in some way leading to just the first entry getting a 1 and the rest 0s.
Determine why the logs are not outputted/updated with the correct values. In the CLI output, you can search on:
.get("i") or some other letter if another case is hit randomly. (Preferably "i" because that is updated just before logging.)
The text was updated successfully, but these errors were encountered:
opening the hitrate counter log file in VScode shows that
"validInvestments": 0
are sometimes changed to 1 and then overwritten to 0 whilst only thedidNotreachInvestmentCeiling
counter increases.I expect this happens in the for loops with respect to the keys length and a potential difference in the values length of the mapping and any checks on their respectives lengths that prevent reaching certain counting/copying for loops.
Alternative hypothesis is that the compiler/something sorts the mapping and/or struct in some way leading to just the first entry getting a 1 and the rest 0s.
Determine why the logs are not outputted/updated with the correct values. In the CLI output, you can search on:
.get("i") or some other letter if another case is hit randomly. (Preferably "i" because that is updated just before logging.)
The text was updated successfully, but these errors were encountered: