Merge branch 'main' of https://github.com/Ayush272002/Event-Chain into add_buy_button_handler

This commit is contained in:
Ayush Acharjya
2024-10-27 00:09:03 +01:00
17 changed files with 1559 additions and 2594 deletions

View File

@@ -42,7 +42,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);