You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the value is always the 2nd letter of the key isn't it? For example the key is document, the value is o, how can it be an object as {tonconnect: xxx}. So the getCurrentlyInjectedWallets method would always return empty array
However...some wallets works good with it, I don't know what the magic behind it
Expected behavior
Object.entries(window).filter(([_, value]) => {})
Current behavior
Object.keys(window).filter(([_, value]) => {})
Steps to Reproduce
read code, and run code
Environment
node js
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
sdk/packages/sdk/src/provider/injected/injected-provider.ts
Line 56 in 71f287c
in this piece code,
Object.keys(window).filter(([_, value]) => {})
the value is always the 2nd letter of the key isn't it? For example the key is document, the
value
iso
, how can it be an object as {tonconnect: xxx}. So thegetCurrentlyInjectedWallets
method would always return empty arrayHowever...some wallets works good with it, I don't know what the magic behind it
Expected behavior
Object.entries(window).filter(([_, value]) => {})
Current behavior
Object.keys(window).filter(([_, value]) => {})
Steps to Reproduce
read code, and run code
Environment
node js
Additional context
No response
The text was updated successfully, but these errors were encountered: