Skip to content

Commit

Permalink
Merge pull request #149 from rhinestonewtf/fix/associated-storage-tests
Browse files Browse the repository at this point in the history
fix: fix unassociated storage
  • Loading branch information
highskore authored Oct 23, 2024
2 parents 14aac88 + 3c5342e commit 3fa384d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 15 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
foundry-fuzz-runs: 5000
foundry-profile: "test"
match-path: "test/**/*.sol"
foundry-verbosity: 3
foundry-gas-limit: "18446744073709551615"
foundry-memory-limit: 2147483648
secrets:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand All @@ -30,6 +33,9 @@ jobs:
foundry-fuzz-runs: 5000
foundry-profile: "test"
match-path: "test/**/*.sol"
foundry-verbosity: 3
foundry-gas-limit: "18446744073709551615"
foundry-memory-limit: 2147483648
secrets:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand All @@ -41,6 +47,9 @@ jobs:
foundry-fuzz-runs: 5000
foundry-profile: "test"
match-path: "test/**/*.sol"
foundry-verbosity: 3
foundry-gas-limit: "18446744073709551615"
foundry-memory-limit: 2147483648
secrets:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
3 changes: 3 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ libs = ["node_modules"]
fs_permissions = [{ access = "read", path = "out-optimized" }, { access = "read-write", path = "gas_calculations" }]
allow_paths = ["*", "/"]
ignored_warnings_from = ["node_modules", "src/integrations"]
gas_limit = "18446744073709551615"
memory_limit = 2147483648
verbosity = 3

[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@ERC4337/account-abstraction": "github:kopy-kat/account-abstraction#develop",
"@ERC4337/account-abstraction-v0.6": "github:eth-infinitism/account-abstraction#v0.6.0",
"@prb/math": "^4.0.2",
"@rhinestone/erc4337-validation": "^0.0.1-alpha.5",
"@rhinestone/module-bases": "github:rhinestonewtf/module-bases",
"@rhinestone/erc4337-validation": "^0.0.2",
"@rhinestone/module-bases": "github:rhinestonewtf/module-bases#d048ec28c8ea8b4155db3ce4f027bc64cd41f9a7",
"@rhinestone/safe7579": "github:rhinestonewtf/safe7579#v1.0.0",
"@rhinestone/sentinellist": "github:rhinestonewtf/sentinellist",
"@rhinestone/registry": "github:rhinestonewtf/registry#v1.0",
Expand Down
30 changes: 18 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/integrations/SmartSession.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contract SmartSessionTest is BaseTest {
// Deploy mock policy
mockPolicy = new MockPolicy();
// Set the policy to allow any action
mockPolicy.setValidationData(0);
mockPolicy.setValidationData(address(instance.account), 0);
// Deploy mock target
target = new MockTarget();
}
Expand Down
13 changes: 13 additions & 0 deletions test/mocks/MockValidatorFalse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,17 @@ contract MockValidatorFalse is ERC7579ValidatorBase {
function isInitialized(address smartAccount) external pure returns (bool) {
return false;
}

function validateSignatureWithData(
bytes32,
bytes calldata,
bytes calldata
)
external
view
override
returns (bool validSig)
{
return false;
}
}

0 comments on commit 3fa384d

Please sign in to comment.