2022-09-24 20:49:19 -07:00

21 lines
375 B
Rust

mod core;
mod curve_ops;
mod ecrecover;
mod exp;
mod mpt;
mod packing;
mod rlp;
mod transaction_parsing;
use std::str::FromStr;
use anyhow::Result;
use ethereum_types::U256;
pub(crate) fn u256ify<'a>(hexes: impl IntoIterator<Item = &'a str>) -> Result<Vec<U256>> {
Ok(hexes
.into_iter()
.map(U256::from_str)
.collect::<Result<Vec<_>, _>>()?)
}