Getting toWei function using window.ethereum

I am simply trying to access a toWei utils function on a front end website in javascript. "Since we removed our window.web3, MetaMask no longer automatically reloads the page on chain/network changes." https://docs.metamask.io/guide/provider-migration.html#summary-of-breaking-changes So I am using window.ethereum which has been fine so far. But I can’t find, even with considerable googling, a direct example… Read More Getting toWei function using window.ethereum