diff --git a/static/scripts/rewards/web3/connect-wallet.ts b/static/scripts/rewards/web3/connect-wallet.ts index cbe63baa..6d544dce 100644 --- a/static/scripts/rewards/web3/connect-wallet.ts +++ b/static/scripts/rewards/web3/connect-wallet.ts @@ -6,6 +6,8 @@ export async function connectWallet(): Promise { try { const wallet = new ethers.providers.Web3Provider(window.ethereum); + window.history.pushState({}, "", "/"); + await wallet.send("eth_requestAccounts", []); const signer = wallet.getSigner();