22 lines
385 B
Rust
Raw Normal View History

mod core;
2022-07-13 18:48:25 +02:00
mod curve_ops;
2022-07-14 13:16:25 +02:00
mod ecrecover;
2022-07-13 18:48:25 +02:00
mod exp;
2022-09-22 20:09:48 -07:00
mod mpt;
2022-08-03 22:54:17 -07:00
mod packing;
2022-07-29 13:50:16 -07:00
mod rlp;
2022-08-01 16:36:36 -07:00
mod sha2;
2022-08-08 11:37:35 -07:00
mod transaction_parsing;
2022-07-13 18:48:25 +02:00
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<_>, _>>()?)
}