Closed sakulstra closed 12 hours ago
should probably record contract_info gas and size before returning here
@sakulstra pls check comment here https://github.com/foundry-rs/foundry/pull/9301#issuecomment-2472784914 For accurate gas reports you should create dedicated test for nested contracts, we could improve docs to reflect this. Does this make sense? thanks!
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (d2ed15d 2024-11-04T00:27:08.261921000Z)
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
When a contract is deployed by another contract it's method gas cost will show up, but
size
is reported as zero.Reproduction: Parent deploying child and test calling child.w().
Yields:
I would expect deployment size & cost to be reported correctly.