parsing complex tests works modulo the contract addresses in calldata

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2025-03-19 16:23:04 +01:00
parent d08d6fd66f
commit 67f068ca12
15 changed files with 429 additions and 27 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ where
match calldata_string.parse::<U256>() {
Ok(parsed) => result.extend_from_slice(&parsed.to_be_bytes::<32>()),
Err(error) => {
return Err(serde::de::Error::custom(&format!(
return Err(serde::de::Error::custom(format!(
"parsing U256 {calldata_string} error: {error}"
)));
}
@@ -67,7 +67,7 @@ where
match Function::parse(&signature) {
Ok(function) => Method::Function(function.selector().0),
Err(error) => {
return Err(serde::de::Error::custom(&format!(
return Err(serde::de::Error::custom(format!(
"parsing function signature '{signature}' error: {error}"
)));
}