mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(cli): enable shanghai ethereum tests (#1416)
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user