mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
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:
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user