Open WoodsFiend opened 2 weeks ago
Hello,
It appears the app did not receive a response from the WalletConnect relay. Could you please answer a few questions to help me better understand the situation?
I found more logs when I enabled logging in the config, this comes after the logs I sent above. (I removed the params in-case my app id is in there)
[Relayer] Checking for established connection
[Relayer] Sending request through provider
[JsonRpcProvider] Checking if connected
[JsonRpcProvider] Sending request irn_subscribe with data {"method":"irn_subscribe","params":{}
[Relayer] Checking for established connection
[Relayer] Sending request through provider
[JsonRpcProvider] Checking if connected
[JsonRpcProvider] Sending request irn_publish with data {"method":"irn_publish","params":{}
Sometimes if I try to reload a QR after this I get a couple expired topic logs, then an unsubscribe log:
Expired topic topic:1557bade5ac4527512223d3b6cfdfb09eae1a38ffad2196223153f7ba7dc4c68
Expired topic id:74258315530174
[JsonRpcProvider] Sending request irn_unsubscribe with data {"method":"irn_unsubscribe","params":{}
I just tried a build and it seems to be the same issue, so not just an editor problem.
Though when I ran the build I did notice this warning about an uncompiled Assembly Definition File. This might be the culprit since I think its a barcode library. There doesn't seem to be any scripts alongside the dll.
Assembly for Assembly Definition File 'Packages/com.walletconnect.core/Runtime/External/ZXing/ZXing.asmdef' will not be compiled, because it has no scripts associated with it.
@WoodsFiend thank you providing more information 🙏
It looks like the problem is with the ZXing library used for generating QR code images. I'm looking into it. Meanwhile, can you confirm if the "Copy link" button on the screen where the QR code should appear is working for you? Does it copy the WalletConnect connection URI?
@skibitsky Yes it does copy the WalletConnect connection URI
Hey @WoodsFiend,
Sorry for the delay. I have fixed the warning in the recent release. Could you please upgrade Web3Modal to v0.3.2 and check if the issue persists?
After setting up Web3Modal by following the documentation, no QR codes are loading for me to scan when testing in the editor.
Unity Version: 2022.3.11f1 Web3Modal Version: 0.3.1
There doesn't seem to be any errors and the logs seem to indicate I established a connection.
Connector.Connect UnityEngine.Debug:Log (object) WalletConnect.Web3Modal.Connector:Connect () (at ./Library/PackageCache/com.walletconnect.web3modal@0.3.1/Runtime/Connectors/Connector.cs:62)
Got connection UnityEngine.Debug:Log (object) WalletConnect.Web3Modal.Connector:Connect () (at ./Library/PackageCache/com.walletconnect.web3modal@0.3.1/Runtime/Connectors/Connector.cs:68)