Compare commits

...

5 Commits

Author SHA1 Message Date
Omar Abdulla f480e41a04 Merge branch 'main' into feature/case-ignore-flag 2025-08-04 19:24:06 +03:00
Omar Abdulla 82d00466ba Add a case ignore flag 2025-08-04 19:21:31 +03:00
Omar Abdulla b7ddb2da92 Increase kitchensink wait time to 60 seconds 2025-08-04 15:30:43 +03:00
Omar Abdulla 17b56a8155 Increase the number of private keys 2025-08-04 13:39:56 +03:00
Omar Abdulla 8578862537 Added a resolver tied to a specific block 2025-08-04 12:08:50 +03:00
3 changed files with 32 additions and 0 deletions
+6
View File
@@ -5,6 +5,7 @@ use std::marker::PhantomData;
use std::path::PathBuf; use std::path::PathBuf;
use alloy::eips::BlockNumberOrTag; use alloy::eips::BlockNumberOrTag;
use alloy::hex;
use alloy::json_abi::JsonAbi; use alloy::json_abi::JsonAbi;
use alloy::network::{Ethereum, TransactionBuilder}; use alloy::network::{Ethereum, TransactionBuilder};
use alloy::primitives::{BlockNumber, U256}; use alloy::primitives::{BlockNumber, U256};
@@ -242,6 +243,11 @@ where
) { ) {
let value = U256::from_be_slice(output_word); let value = U256::from_be_slice(output_word);
self.variables.insert(variable_name.clone(), value); self.variables.insert(variable_name.clone(), value);
tracing::info!(
variable_name,
variable_value = hex::encode(value.to_be_bytes::<32>()),
"Assigned variable"
);
} }
Ok(()) Ok(())
+25
View File
@@ -162,6 +162,20 @@ where
Some(false) | None => true, Some(false) | None => true,
}, },
) )
.filter(
|(metadata_file_path, _, case_idx, case, _)| match case.ignore {
Some(true) => {
tracing::warn!(
metadata_file_path = %metadata_file_path.display(),
case_idx,
case_name = ?case.name,
"Ignoring case"
);
false
}
Some(false) | None => true,
},
)
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let metadata_case_status = Arc::new(RwLock::new(test_cases.iter().fold( let metadata_case_status = Arc::new(RwLock::new(test_cases.iter().fold(
@@ -463,6 +477,17 @@ where
} }
}; };
tracing::info!(
?library_instance,
library_address = ?leader_receipt.contract_address,
"Deployed library to leader"
);
tracing::info!(
?library_instance,
library_address = ?follower_receipt.contract_address,
"Deployed library to follower"
);
let Some(leader_library_address) = leader_receipt.contract_address else { let Some(leader_library_address) = leader_receipt.contract_address else {
tracing::error!("Contract deployment transaction didn't return an address"); tracing::error!("Contract deployment transaction didn't return an address");
anyhow::bail!("Contract deployment didn't return an address"); anyhow::bail!("Contract deployment didn't return an address");
+1
View File
@@ -15,6 +15,7 @@ pub struct Case {
pub inputs: Vec<Input>, pub inputs: Vec<Input>,
pub group: Option<String>, pub group: Option<String>,
pub expected: Option<Expected>, pub expected: Option<Expected>,
pub ignore: Option<bool>,
} }
impl Case { impl Case {