mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-02 08:51:12 +00:00
support solc v0.8.36 (#572)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
e7c761c068
commit
d1c00c2147
12 files changed
+20
-11
No files matched your search
@@ -49,6 +49,9 @@ pub enum EVMVersion {
|
||||
/// The corresponding EVM version.
|
||||
#[serde(rename = "osaka")]
|
||||
Osaka,
|
||||
/// The corresponding EVM version.
|
||||
#[serde(rename = "amsterdam")]
|
||||
Amsterdam,
|
||||
}
|
||||
|
||||
impl TryFrom<&str> for EVMVersion {
|
||||
@@ -70,6 +73,7 @@ impl TryFrom<&str> for EVMVersion {
|
||||
"cancun" => Self::Cancun,
|
||||
"prague" => Self::Prague,
|
||||
"osaka" => Self::Osaka,
|
||||
"amsterdam" => Self::Amsterdam,
|
||||
_ => anyhow::bail!("Invalid EVM version: {}", value),
|
||||
})
|
||||
}
|
||||
@@ -92,6 +96,7 @@ impl std::fmt::Display for EVMVersion {
|
||||
Self::Cancun => write!(f, "cancun"),
|
||||
Self::Prague => write!(f, "prague"),
|
||||
Self::Osaka => write!(f, "osaka"),
|
||||
Self::Amsterdam => write!(f, "amsterdam"),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user