mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-15 17:11:03 +00:00
remove commented out code
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -8,27 +8,6 @@ use semver::VersionReq;
|
|||||||
use serde::{Deserialize, de::Deserializer};
|
use serde::{Deserialize, de::Deserializer};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
/* fn deserialize_calldata<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error>
|
|
||||||
where
|
|
||||||
D: Deserializer<'de>,
|
|
||||||
{
|
|
||||||
let calldata_strings: Vec<String> = Vec::deserialize(deserializer)?;
|
|
||||||
let mut result = Vec::with_capacity(calldata_strings.len() * 32);
|
|
||||||
|
|
||||||
for calldata_string in &calldata_strings {
|
|
||||||
match calldata_string.parse::<U256>() {
|
|
||||||
Ok(parsed) => result.extend_from_slice(&parsed.to_be_bytes::<32>()),
|
|
||||||
Err(error) => {
|
|
||||||
return Err(serde::de::Error::custom(format!(
|
|
||||||
"parsing U256 {calldata_string} error: {error}"
|
|
||||||
)));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(result)
|
|
||||||
} */
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
|
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
|
||||||
pub struct Input {
|
pub struct Input {
|
||||||
#[serde(default = "default_caller")]
|
#[serde(default = "default_caller")]
|
||||||
|
|||||||
Reference in New Issue
Block a user