Skip to content

Commit 85e3b1f

Browse files
authored
FEAT: support vyper-json codeformat (#91)
This feature is related foundry-rs/foundry#10702
1 parent cecf172 commit 85e3b1f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/block-explorers/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ impl Client {
269269
_ => HashMap::new(),
270270
};
271271

272+
272273
let response = self
273274
.client
274275
.post(self.etherscan_api_url.clone())

crates/block-explorers/src/verify.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,17 @@ pub enum CodeFormat {
147147
#[default]
148148
#[serde(rename = "solidity-standard-json-input")]
149149
StandardJsonInput,
150+
151+
#[serde(rename = "vyper-json")]
152+
VyperJson,
150153
}
151154

152155
impl AsRef<str> for CodeFormat {
153156
fn as_ref(&self) -> &str {
154157
match self {
155158
CodeFormat::SingleFile => "solidity-single-file",
156159
CodeFormat::StandardJsonInput => "solidity-standard-json-input",
160+
CodeFormat::VyperJson => "vyper-json",
157161
}
158162
}
159163
}

0 commit comments

Comments
 (0)