Phantom connection problem
halimabergaoui opened this issue · 0 comments
halimabergaoui commented
Hey, I am using trying to connect phantom to my web app using the following function.
`
//@ts-ignore
window.solana.connect();
//@ts-ignore
window.solana.on("connect", () => {
setConnected(true);
window.location.assign("#/dashboard")
});
//@ts-ignore
window.solana.on("disconnect", () => {
setConnected(false);
});
return () => {
myWallet.disconnect();
};
}`
However, the connection is not established even though it was working before. Is there an update that occurred recently?