Skip to content

Commit

Permalink
add gas test for deploying FileStore
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Dec 29, 2023
1 parent 4949dbe commit a24ab81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/contracts/gas-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
"name": "read big file",
"gasUsed": 66531
},
{
"file": "src/FileStore.t.sol",
"test": "testConstructor",
"name": "deploy",
"gasUsed": 1466759
},
{
"file": "src/FileStore.t.sol",
"test": "testCreateFile",
Expand Down
2 changes: 2 additions & 0 deletions packages/contracts/src/FileStore.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ contract FileStoreTest is Test, GasReporter {
function testConstructor() public {
vm.expectEmit(true, true, true, true);
emit IFileStore.Deployed();
startGasReport("deploy");
new FileStore(SAFE_SINGLETON_FACTORY);
endGasReport();
}

function testCreateFile() public {
Expand Down

0 comments on commit a24ab81

Please sign in to comment.