Skip to content

FilOzone/forge-script-gas-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

forge script gas report

Creates a gas report from the run-*.json result of forge script --broadcast.

Usage

forge_script_gas_report broadcast/Contract.sol/$CHAIN_ID/run-latest.json

Why not use forge snapshot

Measuring gas is important for optimizing smart contracts. forge snapshot meters the gas in an EVM simulator (anvil). Other EVMs such as FEVM may have substantially different gas metering. Without --evm_version support, a simple workaround is to run forge script --broadcast into a local RPC.

About

Creates a gas report from the foundry script result

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages