File tree Expand file tree Collapse file tree
test/DeadmanSwitch/integration/concrete Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ if [ $# -eq 0 ]; then
88fi
99
1010CONTRACT_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+
1117CONTRACT_NAME=$( basename " $CONTRACT_PATH " .sol)
1218
1319mkdir -p ./artifacts/$CONTRACT_NAME
Original file line number Diff line number Diff line change @@ -20,3 +20,6 @@ wrap_comments = true
2020
2121[fuzz ]
2222runs =1000
23+
24+ [rpc_endpoints ]
25+ mainnet = " https://mainnet.gateway.tenderly.co"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments