getInstalledWalletExtensions
string returns
#141
Labels
good first issue
Good for newcomers
Milestone
Discussed in #140
Originally posted by nstanford5 December 19, 2023
Calling
getInstalledWalletExtensions
returns the name of any installed wallet extensions in a browser window. Currently it returns as follows.."lace"
"eternl"
"Nami"
The issue I had was parsing the return to check for each of these extensions -- I assumed they would return to conform to the
SupportedWalletName
Type, but the return for nami uses a capitalN
.Checking these returns against a set of constants like this..
incorrectly denotes that Nami is not installed. The issue would persist when checking the array of names is a
SupportedWalletName
as well, because the Type denotes below..SupportedWalletName: "nami" | "eternl" | "lace"
Fix: Have
getInstalledWalletExtensions
return"nami"
with a lowercasen
The text was updated successfully, but these errors were encountered: