Skip to content

Commit

Permalink
⚗️
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Apr 11, 2024
1 parent 57447d9 commit 9684221
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 34 deletions.
26 changes: 2 additions & 24 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@
MultiOwnerPluginIntegration:test_ownerPlugin_successInstallation() (gas: 39749)
MultiOwnerPluginIntegration:test_runtimeValidation_alwaysAllow_isValidSignature() (gas: 111927)
MultiOwnerPluginIntegration:test_runtimeValidation_ownerOrSelf_standardExecute() (gas: 146828)
MultiOwnerPluginIntegration:test_userOpValidation_owner_standardExecute() (gas: 332445)
MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwner(bytes32) (runs: 256, μ: 111585, ~: 111585)
MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwnerWithEOAOwner(bytes32) (runs: 256, μ: 121995, ~: 121995)
MultiOwnerPluginTest:testFuzz_isValidSignature_EOAOwner(string,bytes32) (runs: 256, μ: 134007, ~: 134000)
MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 256, μ: 540852, ~: 540606)
MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 133712, ~: 133709)
MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwnerWithEOAOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 147415, ~: 147412)
MultiOwnerPluginTest:testFuzz_userOpValidationFunction_EOAOwner(string,(address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 141609, ~: 141599)
MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 547602, ~: 547725)
MultiOwnerPluginTest:test_eip712Domain() (gas: 36308)
MultiOwnerPluginTest:test_multiOwnerPlugin_sentinelIsNotOwner() (gas: 19897)
MultiOwnerPluginTest:test_onInstall_success() (gas: 91258)
MultiOwnerPluginTest:test_onUninstall_success() (gas: 69907)
MultiOwnerPluginTest:test_pluginInitializeGuards() (gas: 155534)
MultiOwnerPluginTest:test_pluginManifest() (gas: 39947)
MultiOwnerPluginTest:test_runtimeValidationFunction_OwnerOrSelf() (gas: 26864)
MultiOwnerPluginTest:test_updateOwners_failWithDuplicatedAddresses() (gas: 85507)
MultiOwnerPluginTest:test_updateOwners_failWithEmptyOwners() (gas: 73894)
MultiOwnerPluginTest:test_updateOwners_failWithNotExist() (gas: 58820)
MultiOwnerPluginTest:test_updateOwners_failWithZeroAddressOwner() (gas: 62527)
MultiOwnerPluginTest:test_updateOwners_success() (gas: 115523)
MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 2, μ: 536969, ~: 536969)
MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 2, μ: 544517, ~: 544517)
18 changes: 8 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
- uses: foundry-rs/foundry-toolchain@v1
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
- run: pip install -r requirements.txt
- run: bun install
- run: forge build
- run: bun run test
- run: rm -rf cache out
- run: forge snapshot --check --force --mt PasskeyOwner -vvvvv > trace.github.log
- uses: actions/upload-artifact@v4
if: always()
with:
path: |
out
*.github.log
3 changes: 3 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ isolate = true
tab_width = 2
bracket_spacing = true
number_underscore = "thousands"

[fuzz]
runs = 2

0 comments on commit 9684221

Please sign in to comment.