convertEthToWei static method

int convertEthToWei(
  1. double eth
)

Implementation

static int convertEthToWei(double eth) {
  int wei = eth ~/ pow(10, -18);
  return wei;
}