Added implementation for resolc trait (#12)

Implement the Solidity Compiler trait for resolc
This commit is contained in:
activecoder10
2025-05-08 12:09:02 +03:00
committed by GitHub
parent 8009f5880c
commit 38b42560ec
8 changed files with 115 additions and 12 deletions
+10 -5
View File
@@ -5,7 +5,7 @@ use rayon::{ThreadPoolBuilder, prelude::*};
use revive_dt_config::*;
use revive_dt_core::{
Geth,
Geth, Kitchensink,
driver::{Driver, State},
};
use revive_dt_format::{corpus::Corpus, metadata::Metadata};
@@ -109,11 +109,16 @@ fn main_compile_only(
) -> anyhow::Result<()> {
tests.par_iter().for_each(|metadata| {
for mode in &metadata.solc_modes() {
let mut state = match platform {
TestingPlatform::Geth => State::<Geth>::new(config),
_ => todo!(),
match platform {
TestingPlatform::Geth => {
let mut state = State::<Geth>::new(config);
let _ = state.build_contracts(mode, metadata);
}
TestingPlatform::Kitchensink => {
let mut state = State::<Kitchensink>::new(config);
let _ = state.build_contracts(mode, metadata);
}
};
let _ = state.build_contracts(mode, metadata);
}
});