Skip to content

Commit

Permalink
WIP: fix safe 1.3 flow
Browse files Browse the repository at this point in the history
  • Loading branch information
wryonik committed Sep 16, 2024
1 parent b3f8b54 commit 94a5a44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion contracts.base-sepolia.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"safeEmailRecoveryModule": "0x33223cAE80Adb25111Ad96F663aB82571b44F714",
"safeEmailRecoveryModule": "0x87a5647a625a0DB1237C550A27C3629a3de4B65c",
"universalEmailRecoveryModule": "0xc0EFFe5d3D240d35450A43a3F9Ebd98091f2e6a7"
}
14 changes: 7 additions & 7 deletions src/components/RequestedRecoveries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94a5a44

Please sign in to comment.