mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 01:03:08 +00:00
fix eth_to_wei
This commit is contained in:
parent
7557f320d4
commit
1c78204df0
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user