fixed wallet button connection and disconnection

This commit is contained in:
ayomaska18
2024-10-26 22:53:26 +01:00
parent c6ac46f227
commit d683916c16
3 changed files with 88 additions and 79 deletions

View File

@@ -33,7 +33,6 @@ export const buyHandler = async (
return;
}
// @ts-expect-error: window.ethereum might not match ExternalProvider exactly
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const contract = getContract().connect(signer);