From b14f071d5dc807280a29019a6e01a7109a2cb0ad Mon Sep 17 00:00:00 2001 From: Bilog WEB3 <155262265+Bilogweb3@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:32:33 +0100 Subject: [PATCH] fix: return empty array encoding for parse_array --- crates/cheatcodes/src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cheatcodes/src/string.rs b/crates/cheatcodes/src/string.rs index ca3c1a88b7fee..771eac16e4703 100644 --- a/crates/cheatcodes/src/string.rs +++ b/crates/cheatcodes/src/string.rs @@ -161,8 +161,8 @@ where .map(|s| parse_value(s.as_ref(), ty)) .collect::, _>>() .map(|vec| DynSolValue::Array(vec).abi_encode()), - // return the empty encoded Bytes when values is empty or the first element is empty - _ => Ok("".abi_encode()), + // return the empty encoded array when values is empty or the first element is empty + _ => Ok(DynSolValue::Array(Vec::new()).abi_encode()), } }