Skip to content

Commit 5729582

Browse files
authored
Merge pull request #26 from rhinestonewtf/revert-25-revert-24-fix/ci
2 parents ccc4753 + a414202 commit 5729582

4 files changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,14 @@ jobs:
4040
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-release.yaml@main"
4141
strategy:
4242
matrix:
43-
contract-name:
43+
contract-path:
4444
[
45-
"AutoSavings",
46-
"ColdStorageFlashloan",
47-
"ColdStorageHook",
48-
"DeadmanSwitch",
49-
"HookMultiPlexer",
50-
"MultiFactor",
51-
"OwnableExecutor",
52-
"OwnableValidator",
53-
"RegistryHook",
54-
"SocialRecovery",
55-
"ScheduledOrders",
56-
"ScheduledTransfers",
45+
"src/MultiFactor/MultiFactor",
46+
"src/OwnableExecutor/OwnableExecutor",
47+
"src/OwnableValidator/OwnableValidator",
48+
"src/SocialRecovery/SocialRecovery",
49+
"src/WebAuthnValidator/WebAuthnValidator",
5750
]
5851
with:
59-
contract-name: ${{ matrix.contract-name }}
52+
contract-path: ${{ matrix.contract-path }}
6053
store-artifacts: true

build-artifacts.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ if [ $# -eq 0 ]; then
88
fi
99

1010
CONTRACT_PATH=$1
11+
12+
# Add .sol extension if not present
13+
if [[ ! "$CONTRACT_PATH" == *.sol ]]; then
14+
CONTRACT_PATH="${CONTRACT_PATH}.sol"
15+
fi
16+
1117
CONTRACT_NAME=$(basename "$CONTRACT_PATH" .sol)
1218

1319
mkdir -p ./artifacts/$CONTRACT_NAME

foundry.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ wrap_comments = true
2020

2121
[fuzz]
2222
runs=1000
23+
24+
[rpc_endpoints]
25+
mainnet = "https://mainnet.gateway.tenderly.co"

test/DeadmanSwitch/integration/concrete/DeadmanSwitch.t.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ contract DeadmanSwitchIntegrationTest is BaseIntegrationTest {
102102
}
103103

104104
function test_ValidateUserOp_RevertWhen_TimeoutNotDue() public {
105+
// Set simulate mode to false
106+
instance.simulateUserOp(false);
105107
// it should revert
106108
UserOpData memory userOpData = instance.getExecOps({
107109
target: address(1),
@@ -110,12 +112,13 @@ contract DeadmanSwitchIntegrationTest is BaseIntegrationTest {
110112
txValidator: address(dms)
111113
});
112114
userOpData.userOp.signature = signHash(_nomineePk, userOpData.userOpHash);
113-
114115
instance.expect4337Revert();
115116
userOpData.execUserOps();
116117
}
117118

118119
function test_ValidateUserOp() public {
120+
// Set simulate mode to false
121+
instance.simulateUserOp(false);
119122
// it should revert
120123
vm.warp(block.timestamp + _timeout);
121124

0 commit comments

Comments
 (0)