revert constructor arg change (#916)
This commit is contained in:
parent
272c1a15af
commit
78161f07e7
|
@ -26,7 +26,8 @@ pub struct VerifyContract {
|
||||||
optimization_used: Option<String>,
|
optimization_used: Option<String>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub runs: Option<String>,
|
pub runs: Option<String>,
|
||||||
#[serde(rename = "constructorArguments", skip_serializing_if = "Option::is_none")]
|
/// NOTE: there is a typo in the etherscan API `constructorArguements`
|
||||||
|
#[serde(rename = "constructorArguements", skip_serializing_if = "Option::is_none")]
|
||||||
pub constructor_arguments: Option<String>,
|
pub constructor_arguments: Option<String>,
|
||||||
#[serde(rename = "evmversion")]
|
#[serde(rename = "evmversion")]
|
||||||
pub evm_version: Option<String>,
|
pub evm_version: Option<String>,
|
||||||
|
@ -329,7 +330,7 @@ mod tests {
|
||||||
.optimization(true)
|
.optimization(true)
|
||||||
.runs(200);
|
.runs(200);
|
||||||
let resp = client.submit_contract_verification(&contract).await.expect("failed to send the request");
|
let resp = client.submit_contract_verification(&contract).await.expect("failed to send the request");
|
||||||
assert_ne!(resp.result, "Error!");
|
assert_ne!(resp.result, "Error!"); // `Error!` result means that request was malformatted
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue