BigInt ethToWei(double ethAmount) { // Multiply by 10^18 to convert to wei return BigInt.from(ethAmount * 1e18); }