fixed type check errors

This commit is contained in:
hueso
2025-03-04 18:46:10 -03:00
parent 54cff28ba0
commit 3227e3209c
6 changed files with 20 additions and 14 deletions

View File

@@ -26,8 +26,8 @@ export const updateWalletStatus = async (): Promise<void> => {
const provider = await getProvider();
const signer = await provider?.getSigner();
const { chainId } = await provider?.getNetwork();
const network = await provider?.getNetwork();
const chainId = network?.chainId;
if (!isPossibleNetwork(Number(chainId))) {
window.alert("Invalid chain!:" + chainId);
return;