Skip to content

Commit 2e14b8a

Browse files
committed
v18.1.14: fix world app address access
1 parent e980e06 commit 2e14b8a

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

dist/esm/index.evm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,7 @@ class WorldApp {
21472147
if(localStorage.getItem(STORAGE_KEY)) {
21482148
return localStorage.getItem(STORAGE_KEY)
21492149
}
2150-
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
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]))
21512151
}
21522152

21532153
connect() {

dist/esm/index.js

Lines changed: 1 addition & 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@
21512151
if(localStorage.getItem(STORAGE_KEY)) {
21522152
return localStorage.getItem(STORAGE_KEY)
21532153
}
2154-
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
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]))
21552155
}
21562156

21572157
connect() {

dist/umd/index.js

Lines changed: 1 addition & 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.13",
4+
"version": "18.1.14",
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.13",
4+
"version": "18.1.14",
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.13",
4+
"version": "18.1.14",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ 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+
return (window?.MiniKit?.user?.walletAddress || MiniKit?.user?.walletAddress)
197197
}
198198

199199
connect() {

0 commit comments

Comments
 (0)