30 lines
487 B
Rust
Raw Normal View History

2022-10-24 13:06:53 +02:00
mod account_code;
2022-10-28 11:15:43 +02:00
mod balance;
2023-02-10 16:31:35 -08:00
mod bignum;
2023-04-24 16:58:57 -07:00
mod blake2_f;
2023-03-22 09:55:35 -07:00
mod bls381;
2022-12-20 17:23:05 -08:00
mod bn254;
mod core;
mod ecc;
2022-07-13 18:48:25 +02:00
mod exp;
2022-10-03 14:07:21 -07:00
mod hash;
mod log;
2022-09-22 20:09:48 -07:00
mod mpt;
2022-08-03 22:54:17 -07:00
mod packing;
mod receipt;
2022-07-29 13:50:16 -07:00
mod rlp;
mod signed_syscalls;
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<_>, _>>()?)
}