-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init connection event sequence exception #24
Comments
+1 |
|
yes, the error appeared after updating the tronLink extension. fixes are needed. thank you! |
+1, |
Sorry for any inconvenience. |
v1.1.8 still not fixed |
I have checked the adapter with the latest TronLink extension(v4.1.3) and it work fine. When i first call |
Sure, Here is my code: const tronLinkAdapter = new TronLinkAdapter();
let address = "";
let chainId = 0;
await tronLinkAdapter.connect();
if (tronLinkAdapter.address) {
address = tronLinkAdapter.address;
try {
const network = await tronLinkAdapter.network(); // call this will throw issue
chainId = parseInt(network.chainId);
} catch (e) {
// catch error here
}
}
Error message: Adapter object: {
_readyState: "Found",
_state: "Connected"
} Note that It just happen for some times, not always. Thank you |
"@tronweb3/tronwallet-adapter-react-hooks": "^1.1.4",
"@tronweb3/tronwallet-adapter-react-ui": "^1.1.5",
"@tronweb3/tronwallet-adapters": "^1.1.6"
Clear the cache and initialize the connection exception for the first time
The wallet is successfully connected, but the disconnect event will be triggered at the end, and the address will be assigned a null value, resulting in an abnormal page display
The text was updated successfully, but these errors were encountered: