Skip to content

Commit 2432787

Browse files
authored
fix: add recovery contract to bank-demo (#125)
This was missing and would fail the deploy. More of a reason to move to the pre-configured factory
1 parent 5c2c8e5 commit 2432787

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

examples/bank-demo/components/app/AddCryptoButton.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const createAccountWithPasskey = async () => {
9494
9595
const createCryptoAccount = async () => {
9696
if (!await createAccountWithPasskey()) {
97-
console.log("showing non-passkey modal!");
9897
showModal.value = true;
9998
} else {
10099
navigateTo("/crypto-account");

examples/bank-demo/composables/useAppMeta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const useAppMeta = () => {
3939
accountFactory: config.public.accountFactory as Address,
4040
passkey: config.public.passkey as Address,
4141
session: config.public.session as Address,
42+
recovery: config.public.recovery as Address,
4243
},
4344
deployerKey: config.public.bankDemoDeployerKey,
4445
aaveAddress: config.public.aaveAddress as Address,

examples/bank-demo/local-node.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"session": "0x3E31f6672df94A26f186114Ad4fe17fD5Add68c9",
3-
"passkey": "0xa9ab0dE9d83cc4827261EaccF536859f4A562b72",
4-
"accountFactory": "0x7e46524E5420CbC62fde4c8683c00EA23871b3Ff",
5-
"accountPaymaster": "0xc0d715A1A2254EC7F61D94D93E9d52D325f19252"
2+
"session": "0xcc8bD0d99CF35e5F07d5FbbFd8f7B628010E52C2",
3+
"passkey": "0xDdB1e5ECd29aAC588E0fb0a7eAB1b589fE7D7dcD",
4+
"accountFactory": "0x940adFE6B30536D22eD78870aA79c9DC0835556C",
5+
"accountPaymaster": "0x025A31E05306E1Db13D1F54581f6C729BE284Fd4",
6+
"recovery": "0xE797B5A28B73925250e70e4077568bF3a4CDc240"
67
}

examples/bank-demo/nuxt.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default defineNuxtConfig({
2828
session: localChainData.session,
2929
passkey: localChainData.passkey,
3030
accountFactory: localChainData.accountFactory,
31+
recovery: localChainData.recovery,
3132
explorerUrl: "http://localhost:3010/",
3233
}
3334
},
@@ -47,6 +48,7 @@ export default defineNuxtConfig({
4748
session: "0xdCdAC285612841db9Fa732098EAF04A917A71A28",
4849
passkey: "0xCeC63BD0f35e04F3Bef1128bA3A856A7BB4D88f1",
4950
accountFactory: "0x23b13d016E973C9915c6252271fF06cCA2098885",
51+
recovery: "0x6AA83E35439D71F28273Df396BC7768dbaA9849D",
5052
explorerUrl: "http://34.121.229.57:3010/",
5153
}
5254
}

0 commit comments

Comments
 (0)