const { chainId, web3 } = useMoralis()
signer = web3.getSigner() as ethers.providers.JsonRpcSigner
if (signer) {
const contractInstance = new Contract(address, abi, signer)
const connectedContract = contractInstance.connect(signer)
tx = await contractInstance.function() if (tx) { await tx.wait(1) }
tx is confirmation = 9 but not 1.
When I called waitForTransaction with non moralis Json rpc provider, it will return the ContractReceipt with correct confirmation.