From 88d40ed21500b9b99f6451ddbf90361b01f76e0e Mon Sep 17 00:00:00 2001 From: James Tedy Date: Fri, 5 Apr 2024 22:06:48 +0700 Subject: [PATCH] fix: wallet persistance in wizard and account settings --- views/accountsettings.html | 4 +- views/wizard.html | 107 +++++++++++++++++++++++++++++++++++-- 2 files changed, 103 insertions(+), 8 deletions(-) diff --git a/views/accountsettings.html b/views/accountsettings.html index 60abe75..2fba70f 100644 --- a/views/accountsettings.html +++ b/views/accountsettings.html @@ -1248,9 +1248,7 @@

Account Settings

async function connectMetaMask() { if (typeof window.ethereum !== 'undefined') { try { - wallet = await MMSDK.sdkProvider.request({ method: 'eth_requestAccounts' }).then(function (w) { return w }) - - console.log(mmwallet) + wallet = await MMSDK.getProvider(); wallet.request({ method: 'eth_requestAccounts' }).then(response => { const accounts = response; diff --git a/views/wizard.html b/views/wizard.html index 6a02fe4..308cc67 100644 --- a/views/wizard.html +++ b/views/wizard.html @@ -285,8 +285,10 @@ Browser Wallet - + Logo WalletConnect - + LogoReview & Deploy + + + + + +