Skip to content

Commit

Permalink
v17.6.1: return World App connect rejection reason
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Dec 4, 2024
1 parent 691b5d5 commit cc218f1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/walletconnect-v2@2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/coinbase-wallet-sdk@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-tokens@10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/worldcoin-precompiled@0.0.33"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/worldcoin-precompiled@1.2.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/qr-code-styling@1"></script>
<script src="dist/umd/index.js?v=52"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/walletconnect-v2@2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/coinbase-wallet-sdk@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-tokens@10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/worldcoin-precompiled@0.0.33"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/worldcoin-precompiled@1.2.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/qr-code-styling@1"></script>
<script src="tmp/index.dev.js"></script>
<style>
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ class WorldApp {

MiniKit.subscribe(ResponseEvent.MiniAppWalletAuth, async (payload) => {
if (payload.status === "error") {
return reject()
return reject(payload.message)
} else {
return resolve(MiniKit.walletAddress)
}
Expand All @@ -1776,7 +1776,7 @@ class WorldApp {
nonce: crypto.randomUUID().replace(/-/g, ""),
expirationTime: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000),
notBefore: new Date(new Date().getTime() - 24 * 60 * 60 * 1000),
statement: "Connect wallet (v17.3.0)"
statement: "Connect wallet (v17.6.0)"
});

})
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@

worldcoinPrecompiled.MiniKit.subscribe(worldcoinPrecompiled.ResponseEvent.MiniAppWalletAuth, async (payload) => {
if (payload.status === "error") {
return reject()
return reject(payload.message)
} else {
return resolve(worldcoinPrecompiled.MiniKit.walletAddress)
}
Expand All @@ -1779,7 +1779,7 @@
nonce: crypto.randomUUID().replace(/-/g, ""),
expirationTime: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000),
notBefore: new Date(new Date().getTime() - 24 * 60 * 60 * 1000),
statement: "Connect wallet (v17.3.0)"
statement: "Connect wallet (v17.6.0)"
});

})
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-evm",
"moduleName": "Web3Wallets",
"version": "17.5.0",
"version": "17.6.1",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand All @@ -28,7 +28,7 @@
"@depay/walletconnect-v2": "^2.12.2",
"@depay/web3-blockchains": "^9.6.1",
"@depay/web3-client-evm": "^10.19.0",
"@depay/worldcoin-precompiled": "^0.0.33",
"@depay/worldcoin-precompiled": "^1.2.0",
"ethers": "^5.7.1"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets",
"moduleName": "Web3Wallets",
"version": "17.5.0",
"version": "17.6.1",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -37,7 +37,7 @@
"@depay/walletconnect-v2": "^2.12.2",
"@depay/web3-blockchains": "^9.6.2",
"@depay/web3-client": "^10.19.0",
"@depay/worldcoin-precompiled": "^0.0.33",
"@depay/worldcoin-precompiled": "^1.2.0",
"ethers": "^5.7.1"
},
"engines": {
Expand All @@ -59,7 +59,7 @@
"@depay/web3-tokens": "^10.4.1",
"@depay/web3-tokens-evm": "^10.4.1",
"@depay/web3-tokens-solana": "^10.4.1",
"@depay/worldcoin-precompiled": "^0.0.33",
"@depay/worldcoin-precompiled": "^1.2.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-solana",
"moduleName": "Web3Wallets",
"version": "17.5.0",
"version": "17.6.1",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
4 changes: 2 additions & 2 deletions src/wallets/WorldApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class WorldApp {

MiniKit.subscribe(ResponseEvent.MiniAppWalletAuth, async (payload) => {
if (payload.status === "error") {
return reject()
return reject(payload.message)
} else {
return resolve(MiniKit.walletAddress)
}
Expand All @@ -179,7 +179,7 @@ export default class WorldApp {
nonce: crypto.randomUUID().replace(/-/g, ""),
expirationTime: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000),
notBefore: new Date(new Date().getTime() - 24 * 60 * 60 * 1000),
statement: "Connect wallet (v17.3.0)"
statement: "Connect wallet (v17.6.0)"
})

})
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1097,10 +1097,10 @@
resolved "https://registry.yarnpkg.com/@depay/web3-tokens/-/web3-tokens-10.4.1.tgz#5679bf714058941a0d43379ac145fd16089cd666"
integrity sha512-brUXHpgZ2CLGptF4SVJnGAguDYEobYFEIJ4IWYt6G8cFCrErCq3IQuK1DULh30pl+sFy9UihrSana7U1mPWR0Q==

"@depay/worldcoin-precompiled@^0.0.33":
version "0.0.33"
resolved "https://registry.yarnpkg.com/@depay/worldcoin-precompiled/-/worldcoin-precompiled-0.0.33.tgz#0c0dab3b332c9c4d0f036efd287d2f8a8e218846"
integrity sha512-AlyBpjEBXD++v3LL3v/AURMtUnFCnBICJNjaqHmi7KXgmVMYVB2rwuSFBOI1ygblXpoObAJIPRtt0Vl4kzkVCA==
"@depay/worldcoin-precompiled@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@depay/worldcoin-precompiled/-/worldcoin-precompiled-1.2.0.tgz#5eb6b55d0d3890e6542c8e72f1941c08c6804058"
integrity sha512-VeHmugWFCMq2k6WvHpcu4M24hOyt17tvFEyYdo439q5wowcIXLVQYHyBCoEU3IScDwW5mtH0gPI0BWyoD2cAqA==
dependencies:
"@rollup/plugin-alias" "^5.1.0"

Expand Down

0 comments on commit cc218f1

Please sign in to comment.