Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Comment out broken step, re-enable branch deploy for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jacque006 committed May 29, 2024
1 parent 730095b commit 02adb41
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/email-recovery-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: packages/demos/email-recovery

on:
push:
branches: ['main']
branches: ['main', 'updated-ui']
paths:
- packages/demos/email-recovery/**

Expand Down Expand Up @@ -49,7 +49,8 @@ jobs:
- name: Build
env:
VITE_WALLET_CONNECT_PROJECT_ID: ${{ secrets.VITE_WALLET_CONNECT_PROJECT_ID }}
run: VITE_WALLET_CONNECT_PROJECT_ID=${VITE_WALLET_CONNECT_PROJECT_ID} yarn build
VITE_OWNER_1_PRIVATE_KEY: ${{ secrets.VITE_OWNER_1_PRIVATE_KEY }}
run: VITE_WALLET_CONNECT_PROJECT_ID=${VITE_WALLET_CONNECT_PROJECT_ID} VITE_OWNER_1_PRIVATE_KEY=${VITE_OWNER_1_PRIVATE_KEY} yarn build

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
40 changes: 20 additions & 20 deletions packages/demos/email-recovery/src/components/EnableSafeModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,26 @@ const EnableSafeModule = () => {

// TODO This step currently reverts as it needs to be run via ERC-4337 Entrypoint (UserOp)
// Since this is likely the only UserOp we need to run, can directly submit to entrypoint
console.debug("4", "Install email recovery module");

// TODO Move to env
// const bundlerUrl = "https://public.stackup.sh/api/v1/node/base-sepolia";

// TODO Move to ConfigureSafeModule component?
// TODO Check this is not already installed, can just directly submit to entrypoint
const executorModuleTypeId = 2; // Executor
await writeContractAsync({
abi: safe7579Abi,
address: safe7579 as `0x{string}`,
functionName: "installModule",
args: [
executorModuleTypeId,
safeRecoveryModule,
"", // TODO Check this install data is no longer needed
]
});

console.debug("Done!");
// console.debug("4", "Install email recovery module");

// // TODO Move to env
// // const bundlerUrl = "https://public.stackup.sh/api/v1/node/base-sepolia";

// // TODO Move to ConfigureSafeModule component?
// // TODO Check this is not already installed, can just directly submit to entrypoint
// const executorModuleTypeId = 2; // Executor
// await writeContractAsync({
// abi: safe7579Abi,
// address: safe7579 as `0x{string}`,
// functionName: "installModule",
// args: [
// executorModuleTypeId,
// safeRecoveryModule,
// "", // TODO Check this install data is no longer needed
// ]
// });

// console.debug("Done!");

}, [address, writeContractAsync]);

Expand Down

0 comments on commit 02adb41

Please sign in to comment.