no idea why this cannot proceed to Wallet Authorization process of Tokenpoket #1028
Unanswered
bigBrotherYang
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a test DAPP, which needed to connect with a third party wallet. I opened my DAPP in Android browser, clicked the pop-up box of WalletConnect, and it automatically jumped to the APP of TokenPocket. At this time, a prompt box of "Connecting" appeared, and then it was stuck until the message "Connection failed please check network" appears, but I'm sure my network is working. I have no idea why this cannot proceed to Wallet Authorization process of Tokenpoket
export async function connectWalletToCw(account, accountsChanged, chainChanged, disconnect) {
// Create a connector
const connector = new WalletConnect({
bridge: 'https://bridge.walletconnect.org', // Required
qrcodeModal: QRCodeModal
})
// await connector.enable()
if (!connector.connected) {
// create new session
connector.createSession()
}
connector.on('connect', (error, payload) => {
if (error) {
throw error
}
})
connector.on('session_update', (error, payload) => {
if (error) {
throw error
}
})
connector.on('disconnect', (error, payload) => {
if (error) {
throw error
}
console.log('---payload---', payload)
disconnect(payload)
// Delete walletConnector
})
Beta Was this translation helpful? Give feedback.
All reactions