From 94a5a44f54637cc2111a82f4d3026586a2310098 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Mon, 16 Sep 2024 23:37:12 +0530 Subject: [PATCH] WIP: fix safe 1.3 flow --- contracts.base-sepolia.json | 2 +- src/components/RequestedRecoveries.tsx | 14 +++++++------- src/utils/email.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contracts.base-sepolia.json b/contracts.base-sepolia.json index a6ac61d..039b01e 100644 --- a/contracts.base-sepolia.json +++ b/contracts.base-sepolia.json @@ -1,4 +1,4 @@ { - "safeEmailRecoveryModule": "0x33223cAE80Adb25111Ad96F663aB82571b44F714", + "safeEmailRecoveryModule": "0x87a5647a625a0DB1237C550A27C3629a3de4B65c", "universalEmailRecoveryModule": "0xc0EFFe5d3D240d35450A43a3F9Ebd98091f2e6a7" } diff --git a/src/components/RequestedRecoveries.tsx b/src/components/RequestedRecoveries.tsx index bde1110..67bf0b3 100644 --- a/src/components/RequestedRecoveries.tsx +++ b/src/components/RequestedRecoveries.tsx @@ -71,13 +71,13 @@ const RequestedRecoveries = () => { console.log(getRecoveryRequest.currentWeight, getGuardianConfig.threshold); - if (getRecoveryRequest.currentWeight < getGuardianConfig.threshold && getGuardianConfig.threshold!==0n) { - setButtonState(BUTTON_STATES.TRIGGER_RECOVERY); - } else { - setButtonState(BUTTON_STATES.COMPLETE_RECOVERY); - setLoading(false); - clearInterval(interval); - } + // if (getRecoveryRequest.currentWeight < getGuardianConfig.threshold && getGuardianConfig.threshold!==0n) { + // setButtonState(BUTTON_STATES.TRIGGER_RECOVERY); + // } else { + // setButtonState(BUTTON_STATES.COMPLETE_RECOVERY); + // setLoading(false); + // clearInterval(interval); + // } setIsButtonStateLoading(false); }; diff --git a/src/utils/email.ts b/src/utils/email.ts index 5435c88..48546f8 100644 --- a/src/utils/email.ts +++ b/src/utils/email.ts @@ -60,7 +60,7 @@ export const getRequestsRecoveryCommand = ( newOwner: string ) => // `Update owner to ${newOwner} on account ${acctAddr}`; - `Recover account ${acctAddr} from old owner ${userAccountAddr} to new owner ${newOwner} using recovery module ${safeEmailRecoveryModule}`; + `Recover account ${acctAddr} from old owner ${userAccountAddr} to new owner ${newOwner}`; export const getRequestsRecoverySubjectForBurnerWallet = ( userAccountAddr: string,