is there a way to get the chain ID in hardhat that works in current year?
the closest thing to working that i've found (none of the answer i found on SE worked) is (ethers.provider as any)._hardhatProvider._provider._expectedChainId which in scientific terms looks dodgy af and also only works if the network config explicitly specifies a chain ID
Jan 5, 2023, 11:27 AM