fix eth_to_wei

This commit is contained in:
Daniel Lubarov 2022-12-09 19:57:02 -08:00
parent 7557f320d4
commit 1c78204df0

View File

@ -108,7 +108,7 @@ fn test_simple_transfer() -> anyhow::Result<()> {
fn eth_to_wei(eth: U256) -> U256 {
// 1 ether = 10^18 wei.
eth * (U256::from(10u8) << 18)
eth * U256::from(10).pow(18.into())
}
fn init_logger() {