From 54eb29e7070a86c601b33e9f82090c8f883206e9 Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Wed, 15 Mar 2023 19:58:26 -0700 Subject: [PATCH] fix --- evm/src/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evm/src/util.rs b/evm/src/util.rs index 6b2ca479..fba97372 100644 --- a/evm/src/util.rs +++ b/evm/src/util.rs @@ -170,8 +170,8 @@ pub(crate) fn mem_vec_to_biguint(x: &[U256]) -> BigUint { pub(crate) fn biguint_to_le_limbs(x: BigUint) -> Vec { let mut digits = x.to_u32_digits(); - // Pad to a multiple of 8. - digits.resize((digits.len() + 7) / 8 * 8, 0); + // Pad to a multiple of 4. + digits.resize((digits.len() + 3) / 4 * 4, 0); digits .chunks(4)