feat(cli): enable shanghai ethereum tests (#1416)

This commit is contained in:
Roman Krasiuk
2023-02-17 17:57:14 +02:00
committed by GitHub
parent 4e31c89c08
commit 4bdbcf346e
5 changed files with 34 additions and 15 deletions

View File

@ -236,9 +236,7 @@ impl From<ForkSpec> for ChainSpec {
ForkSpec::MergeEOF => spec_builder.paris_activated(),
ForkSpec::MergeMeterInitCode => spec_builder.paris_activated(),
ForkSpec::MergePush0 => spec_builder.paris_activated(),
ForkSpec::Shanghai => {
panic!("Not supported")
}
ForkSpec::Shanghai => spec_builder.shanghai_activated(),
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
panic!("Overridden with PETERSBURG")
}

View File

@ -88,6 +88,13 @@ pub fn should_skip(path: &Path) -> bool {
{
return true
}
// Ignore outdated EOF tests that haven't been updated for Cancun yet.
let eof_path = Path::new("EIPTests").join("stEOF");
if path.to_string_lossy().contains(&*eof_path.to_string_lossy()) {
return true
}
false
}
@ -112,7 +119,6 @@ pub async fn run_test(path: PathBuf) -> eyre::Result<TestOutcome> {
ForkSpec::MergeEOF |
ForkSpec::MergeMeterInitCode |
ForkSpec::MergePush0 |
ForkSpec::Shanghai |
ForkSpec::Unknown
) {
continue