Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: rename evm version
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Oct 4, 2021
1 parent 9efca0b commit 0329491
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ethers-etherscan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ pub struct VerifyContract {
skip_serializing_if = "Option::is_none"
)]
pub constructor_arguments: Option<String>,
pub evmversion: Option<String>,
#[serde(rename = "evmversion")]
pub evm_version: Option<String>,
#[serde(flatten)]
pub other: HashMap<String, String>,
}
Expand All @@ -238,7 +239,7 @@ impl VerifyContract {
optimization_used: None,
runs: None,
constructor_arguments: None,
evmversion: None,
evm_version: None,
other: Default::default(),
}
}
Expand Down Expand Up @@ -277,7 +278,7 @@ impl VerifyContract {
}

pub fn evmversion(mut self, evmversion: impl Into<String>) -> Self {
self.evmversion = Some(evmversion.into());
self.evm_version = Some(evmversion.into());
self
}

Expand Down Expand Up @@ -446,9 +447,6 @@ mod tests {
.optimization(true)
.runs(200);

let _resp = client
.submit_contract_verification(&contract)
.await
.unwrap();
let resp = client.submit_contract_verification(&contract).await;
}
}

0 comments on commit 0329491

Please sign in to comment.