Convert inputs in WEI?

Hi everyone!
I'm currently testing a smart contract that allows users to mint my token. I've converted each token price in Wei and wonder if the input to mint a token should be in Wei to in hardhat. For example, if I want to test the mint function for a user who mints one single token, should I use 1 as an input or 1e18? Thanks!

The input to smart contract function will be usually in wei. For 18 decimals, to mint 1 token (or 1 eth equivalent), it will be 1 * (10**18).

1 Like