marktoda / forge-gas-snapshot

Library for checked-in, targeted gas snapshots with forge
MIT License
98 stars 11 forks source link

feat: Create the file if the check mode is on and the file does not exist yet #9

Open RyanHolanda opened 7 months ago

RyanHolanda commented 7 months ago

• Created a new function _checkOrWriteSnapshot(string memory name, uint256 gasUsed) to verify whether to check the existing snapshot or write a new snapshot

• Added a new feature to create the snapshot file if it does not exist and checkMode is on, instead of failing.