ethToWei function

BigInt ethToWei(
  1. double ethAmount
)

Implementation

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