Skip to content

Commit

Permalink
Merge pull request #245 from ubq-testing/mobile-claim-strings
Browse files Browse the repository at this point in the history
fix: clear url param after load
  • Loading branch information
0x4007 authored Jun 11, 2024
2 parents ac525e4 + 25e818e commit 23460da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/scripts/rewards/web3/connect-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function connectWallet(): Promise<JsonRpcSigner | null> {
try {
const wallet = new ethers.providers.Web3Provider(window.ethereum);

window.history.pushState({}, "", "/");

await wallet.send("eth_requestAccounts", []);

const signer = wallet.getSigner();
Expand Down

0 comments on commit 23460da

Please sign in to comment.