Daniel Lubarov 94c9b1b09c Misc
2022-08-01 11:20:56 -07:00

18 lines
343 B
Rust

mod curve_ops;
mod ecrecover;
mod exp;
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<_>, _>>()?)
}