From 833ad3bf272e2086efb4006b4852dda8e52b3270 Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 22:31:57 +0200 Subject: [PATCH 1/6] fix(foundry): add mainnet rpc --- foundry.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foundry.toml b/foundry.toml index cc109a8..dcae0b6 100644 --- a/foundry.toml +++ b/foundry.toml @@ -20,3 +20,6 @@ wrap_comments = true [fuzz] runs=1000 + +[rpc_endpoints] +mainnet = "https://mainnet.gateway.tenderly.co" \ No newline at end of file From a5708140ec667fe2027c04814f46e3e26690f87b Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 22:37:14 +0200 Subject: [PATCH 2/6] fix(tests): set simulate to false --- test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol b/test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol index 73903bf..ca872e7 100644 --- a/test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol +++ b/test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol @@ -102,6 +102,8 @@ contract DeadmanSwitchIntegrationTest is BaseIntegrationTest { } function test_ValidateUserOp_RevertWhen_TimeoutNotDue() public { + // Set simulate mode to false + instance.simulateUserOp(false); // it should revert UserOpData memory userOpData = instance.getExecOps({ target: address(1), @@ -110,12 +112,13 @@ contract DeadmanSwitchIntegrationTest is BaseIntegrationTest { txValidator: address(dms) }); userOpData.userOp.signature = signHash(_nomineePk, userOpData.userOpHash); - instance.expect4337Revert(); userOpData.execUserOps(); } function test_ValidateUserOp() public { + // Set simulate mode to false + instance.simulateUserOp(false); // it should revert vm.warp(block.timestamp + _timeout); From 957e2ad594d505733be8ed6b118ea34a5f1d5126 Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 22:45:27 +0200 Subject: [PATCH 3/6] fix: update ci paths --- .github/workflows/ci.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f57f786..64f9ce6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,18 +42,19 @@ jobs: matrix: contract-name: [ - "AutoSavings", - "ColdStorageFlashloan", - "ColdStorageHook", - "DeadmanSwitch", - "HookMultiPlexer", - "MultiFactor", - "OwnableExecutor", - "OwnableValidator", - "RegistryHook", - "SocialRecovery", - "ScheduledOrders", - "ScheduledTransfers", + "src/AutoSavings/AutoSavings", + "src/ColdStorageFlashloan/ColdStorageFlashloan", + "src/ColdStorageHook/ColdStorageHook", + "src/DeadmanSwitch/DeadmanSwitch", + "src/HookMultiPlexer/HookMultiPlexer", + "src/MultiFactor/MultiFactor", + "src/OwnableExecutor/OwnableExecutor", + "src/OwnableValidator/OwnableValidator", + "src/RegistryHook/RegistryHook", + "src/SocialRecovery/SocialRecovery", + "src/ScheduledOrders/ScheduledOrders", + "src/ScheduledTransfers/ScheduledTransfers", + "src/WebAuthnValidator/WebAuthnValidator", ] with: contract-name: ${{ matrix.contract-name }} From 5ba5ac08af4bc8e7a9944a33e04c183cde56a8c8 Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 22:48:27 +0200 Subject: [PATCH 4/6] fix: fix shell script --- build-artifacts.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build-artifacts.sh b/build-artifacts.sh index 9a754dc..0d5221f 100755 --- a/build-artifacts.sh +++ b/build-artifacts.sh @@ -8,6 +8,12 @@ if [ $# -eq 0 ]; then fi CONTRACT_PATH=$1 + +# Add .sol extension if not present +if [[ ! "$CONTRACT_PATH" == *.sol ]]; then + CONTRACT_PATH="${CONTRACT_PATH}.sol" +fi + CONTRACT_NAME=$(basename "$CONTRACT_PATH" .sol) mkdir -p ./artifacts/$CONTRACT_NAME From 25834f3fc4a4feec70ba8a93e69c0cf027ccb4ce Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 22:54:37 +0200 Subject: [PATCH 5/6] fix(ci): remove unused contracts --- .github/workflows/ci.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64f9ce6..96281b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,18 +42,10 @@ jobs: matrix: contract-name: [ - "src/AutoSavings/AutoSavings", - "src/ColdStorageFlashloan/ColdStorageFlashloan", - "src/ColdStorageHook/ColdStorageHook", - "src/DeadmanSwitch/DeadmanSwitch", - "src/HookMultiPlexer/HookMultiPlexer", "src/MultiFactor/MultiFactor", "src/OwnableExecutor/OwnableExecutor", "src/OwnableValidator/OwnableValidator", - "src/RegistryHook/RegistryHook", "src/SocialRecovery/SocialRecovery", - "src/ScheduledOrders/ScheduledOrders", - "src/ScheduledTransfers/ScheduledTransfers", "src/WebAuthnValidator/WebAuthnValidator", ] with: From 9c7e10f26b24299612112e463fe0fb40881e1dd4 Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 23:01:05 +0200 Subject: [PATCH 6/6] fix(ci): rename to contract path --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 96281b5..411a43e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-release.yaml@main" strategy: matrix: - contract-name: + contract-path: [ "src/MultiFactor/MultiFactor", "src/OwnableExecutor/OwnableExecutor", @@ -49,5 +49,5 @@ jobs: "src/WebAuthnValidator/WebAuthnValidator", ] with: - contract-name: ${{ matrix.contract-name }} + contract-path: ${{ matrix.contract-path }} store-artifacts: true