Skip to content

Commit

Permalink
chore: Update gas report script paths and improve gas report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboudjem committed May 31, 2024
1 parent 54aa2d5 commit 0183dc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/foundry/compareGasReports.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ function compareGasReports(prevFile, currFile) {
const prevLines = prevData.split('\n');
const currLines = currData.split('\n');

const diffLines = ['# Gas Report Comparison', '| **Protocol** | **Actions / Function** | **Account Type** | **Is Deployed** | **With Paymaster?** | **Receiver Access** | **Gas Used** | **Gas Difference** |', '|:------------:|:---------------------:|:----------------:|:--------------:|:-------------------:|:-------------------:|:------------:|:------------------:|'];
const diffLines = [
'# Gas Report Comparison',
'| **Protocol** | **Actions / Function** | **Account Type** | **Is Deployed** | **With Paymaster?** | **Receiver Access** | **Gas Used** | **Gas Difference** |',
'|:------------:|:---------------------:|:----------------:|:--------------:|:-------------------:|:-------------------:|:------------:|:------------------:|'
];

const prevResults = parseGasReport(prevLines);
const currResults = parseGasReport(currLines);
Expand Down

0 comments on commit 0183dc0

Please sign in to comment.