bug: --gas-report
groups all methods of all contracts that use the same type of proxy contract
#9115
Open
2 tasks done
Labels
A-gas-snapshots
Area: gas snapshotting/reporting
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
No response
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
After trying to generate
--json
output where i faced #9111 I played a bit around and faced another "bug"? in regards to the output in general.If you have multiple contracts in a repo using the same type of proxy (e.g. oz
TransparentUpgradeableProxy
), foundy will group all methods of all contracts using this proxy together. What is even worse, i think when multiple implementations implement the same signature (e.g.transfer
- it will show as one and consider all implementations for things like average etc).Not 100% sure what the solution is, perhaps it could be possible to differentiate multiple Proxies dependent on the impl being delegate-called?
The text was updated successfully, but these errors were encountered: