change transaction value fields from u128 to a wrapper-type of U256 (#4439)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Roberto Bayardo
2023-10-04 05:07:44 -07:00
committed by GitHub
parent d3cc4cc643
commit 081d71e1a2
23 changed files with 204 additions and 63 deletions

View File

@ -164,6 +164,11 @@ pub fn get_bit_size(ftype: &str) -> u8 {
"u64" | "BlockNumber" | "TxNumber" | "ChainId" | "NumTransactions" => 4,
"u128" => 5,
"U256" => 6,
#[cfg(not(feature = "value-256"))]
"TxValue" => 5, // u128 for ethereum chains assuming high order bits are not used
#[cfg(feature = "value-256")]
// for fuzz/prop testing and chains that may require full 256 bits
"TxValue" => 6,
_ => 0,
}
}