Skip to content

Commit e78d2fc

Browse files
authored
chore: improve empty hardforks panic message (paradigmxyz#3279)
1 parent ac887ce commit e78d2fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/revm/revm-primitives/src/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ pub fn revm_spec(chain_spec: &ChainSpec, block: Head) -> revm::primitives::SpecI
4242
} else if chain_spec.fork(Hardfork::Frontier).active_at_head(&block) {
4343
revm::primitives::FRONTIER
4444
} else {
45-
panic!("wrong configuration")
45+
panic!(
46+
"invalid hardfork chainspec: expected at least one hardfork, got {:?}",
47+
chain_spec.hardforks
48+
)
4649
}
4750
}
4851

0 commit comments

Comments
 (0)