etherToWei incorrect value

Expected 1 ether.. showing over 4k ether..

Found solution.. value should be hex encoded..
import { etherToWei, hexValue } from "essential-eth";
hexValue(etherToWei(1))
this is correct example:


Thanks for submitting this, I'll re-open it to make sure I understand how this works
I believe this is the expected behavior of calling window.ethereum directly with a value live this. The recommendation would instead be to use a provider which supports the injected browser instance so that you don't need to handle conversions like this and calling directly functions like eth-sendTransaction @7flash
I may be confused though, please re-open if I am misunderstanding and will consider this again 🙏