24 lines
410 B
Rust
Raw Normal View History

2022-10-28 11:15:43 +02:00
mod balance;
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-10-03 14:07:21 -07:00
mod hash;
2022-09-22 20:09:48 -07:00
mod mpt;
2022-08-03 22:54:17 -07:00
mod packing;
2022-09-19 19:04:22 -07:00
mod ripemd;
2022-07-29 13:50:16 -07:00
mod rlp;
2022-08-01 11:20:56 -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<_>, _>>()?)
}