Skip to content

Commit 86b594b

Browse files
committed
Merge branch 'main' into typo-pass-1
2 parents 112f25d + c73f36c commit 86b594b

7 files changed

Lines changed: 1778 additions & 708 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: safe-smart-account
22
on: [push, pull_request]
33
env:
4-
NODE_VERSION: 20.16.0
4+
NODE_VERSION: 22.14.0
55

66
jobs:
77
lint-solidity:
@@ -41,6 +41,18 @@ jobs:
4141
- run: npm run build
4242
- run: npm run test
4343

44+
tests-zk:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-node@v4
49+
with:
50+
node-version: ${{ env.NODE_VERSION }}
51+
cache: "npm"
52+
- run: npm ci
53+
- run: npm run build
54+
- run: npm run test:zk
55+
4456
coverage:
4557
runs-on: ubuntu-latest
4658
strategy:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
.cache/
23
build/
34
node_modules/
45
.DS_Store

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.17.1
1+
v22.14.0

certora/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
certora-cli==7.22.2
1+
certora-cli==7.26.0

contracts/common/StorageAccessible.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ abstract contract StorageAccessible {
3131

3232
/**
3333
* @dev Performs a delegatecall on a targetContract in the context of self.
34-
* Internally reverts execution to avoid side effects (making it static).
34+
* Internally reverts execution to avoid side effects (making it effectively static).
3535
*
36-
* This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.
36+
* This method reverts with data equal to `abi.encodePacked(uint256(success), uint256(response.length), bytes(response))`.
3737
* Specifically, the `returndata` after a call to this method will be:
38-
* `success:bool || response.length:uint256 || response:bytes`.
38+
* `success:uint256 || response.length:uint256 || response:bytes`.
3939
*
4040
* @param targetContract Address of the contract containing the code to execute.
4141
* @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).

0 commit comments

Comments
 (0)