Skip to content

Commit

Permalink
fix: fix bugs about the default EVM version in Solc (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangZhuoSJTU committed Aug 27, 2024
1 parent d44051a commit dd1726f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/block-explorers/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ impl Metadata {
#[cfg(feature = "foundry-compilers")]
pub fn evm_version(&self) -> Result<Option<EvmVersion>> {
match self.evm_version.to_lowercase().as_str() {
"" | "default" => {
Ok(EvmVersion::default().normalize_version_solc(&self.compiler_version()?))
}
"" | "default" => Ok(EvmVersion::default_version_solc(&self.compiler_version()?)),
_ => {
let evm_version = self
.evm_version
Expand Down

0 comments on commit dd1726f

Please sign in to comment.