Skip to content

Commit 4acdd0b

Browse files
committed
v18.1.15
1 parent 2e14b8a commit 4acdd0b

File tree

8 files changed

+33
-8
lines changed

8 files changed

+33
-8
lines changed

dist/esm/index.evm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,12 @@ class WorldApp {
21472147
if(localStorage.getItem(STORAGE_KEY)) {
21482148
return localStorage.getItem(STORAGE_KEY)
21492149
}
2150-
return (_optionalChain$1([window, 'optionalAccess', _17 => _17.MiniKit, 'optionalAccess', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'optionalAccess', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2150+
if(window.MiniKit && window.MiniKit.user) {
2151+
return window.MiniKit.user.walletAddress
2152+
}
2153+
if(MiniKit && MiniKit.user) {
2154+
return MiniKit.user.walletAddress
2155+
}
21512156
}
21522157

21532158
connect() {

dist/esm/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/index.evm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,12 @@
21512151
if(localStorage.getItem(STORAGE_KEY)) {
21522152
return localStorage.getItem(STORAGE_KEY)
21532153
}
2154-
return (_optionalChain$1([window, 'optionalAccess', _17 => _17.MiniKit, 'optionalAccess', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'optionalAccess', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2154+
if(window.MiniKit && window.MiniKit.user) {
2155+
return window.MiniKit.user.walletAddress
2156+
}
2157+
if(MiniKit && MiniKit.user) {
2158+
return MiniKit.user.walletAddress
2159+
}
21552160
}
21562161

21572162
connect() {

dist/umd/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.evm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-wallets-evm",
33
"moduleName": "Web3Wallets",
4-
"version": "18.1.14",
4+
"version": "18.1.15",
55
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
66
"main": "dist/umd/index.evm.js",
77
"module": "dist/esm/index.evm.js",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-wallets",
33
"moduleName": "Web3Wallets",
4-
"version": "18.1.14",
4+
"version": "18.1.15",
55
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
66
"main": "dist/umd/index.js",
77
"module": "dist/esm/index.js",

package.svm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-wallets-svm",
33
"moduleName": "Web3Wallets",
4-
"version": "18.1.14",
4+
"version": "18.1.15",
55
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
66
"main": "dist/umd/index.svm.js",
77
"module": "dist/esm/index.svm.js",

src/wallets/WorldApp.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ export default class WorldApp {
193193
if(localStorage.getItem(STORAGE_KEY)) {
194194
return localStorage.getItem(STORAGE_KEY)
195195
}
196-
return (window?.MiniKit?.user?.walletAddress || MiniKit?.user?.walletAddress)
196+
if(window.MiniKit && window.MiniKit.user) {
197+
return window.MiniKit.user.walletAddress
198+
}
199+
if(MiniKit && MiniKit.user) {
200+
return MiniKit.user.walletAddress
201+
}
197202
}
198203

199204
connect() {

0 commit comments

Comments
 (0)