parent
48dbbbd829
commit
c5ff733702
|
@ -36,7 +36,6 @@ fn load_compiler_inputs() -> Vec<CompilerInput> {
|
||||||
let mut inputs = Vec::new();
|
let mut inputs = Vec::new();
|
||||||
for file in std::fs::read_dir(Path::new(&env!("CARGO_MANIFEST_DIR")).join("test-data/in"))
|
for file in std::fs::read_dir(Path::new(&env!("CARGO_MANIFEST_DIR")).join("test-data/in"))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.into_iter()
|
|
||||||
.take(5)
|
.take(5)
|
||||||
{
|
{
|
||||||
let file = file.unwrap();
|
let file = file.unwrap();
|
||||||
|
|
|
@ -1089,11 +1089,11 @@ mod tests {
|
||||||
let result: Result<SourceUnit, _> = serde_path_to_error::deserialize(deserializer);
|
let result: Result<SourceUnit, _> = serde_path_to_error::deserialize(deserializer);
|
||||||
match result {
|
match result {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("... {} fail: {e}", path_str);
|
println!("... {path_str} fail: {e}");
|
||||||
panic!();
|
panic!();
|
||||||
}
|
}
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
println!("... {} ok", path_str);
|
println!("... {path_str} ok");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -457,7 +457,7 @@ impl Solc {
|
||||||
|
|
||||||
use sha2::Digest;
|
use sha2::Digest;
|
||||||
let mut hasher = sha2::Sha256::new();
|
let mut hasher = sha2::Sha256::new();
|
||||||
hasher.update(&content);
|
hasher.update(content);
|
||||||
let checksum_calc = &hasher.finalize()[..];
|
let checksum_calc = &hasher.finalize()[..];
|
||||||
|
|
||||||
let checksum_found = &RELEASES.0.get_checksum(&version).expect("checksum not found");
|
let checksum_found = &RELEASES.0.get_checksum(&version).expect("checksum not found");
|
||||||
|
|
|
@ -649,7 +649,7 @@ impl Graph {
|
||||||
return Vec::new()
|
return Vec::new()
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut result = sets.pop().cloned().expect("not empty; qed.").clone();
|
let mut result = sets.pop().cloned().expect("not empty; qed.");
|
||||||
if !sets.is_empty() {
|
if !sets.is_empty() {
|
||||||
result.retain(|item| sets.iter().all(|set| set.contains(item)));
|
result.retain(|item| sets.iter().all(|set| set.contains(item)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ where
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("Original transaction gas: {curr_gas:?} wei");
|
println!("Original transaction gas: {curr_gas:?} wei");
|
||||||
let units: U256 = U256::exp10(CONTINGENCY_UNITS.into());
|
let units: U256 = U256::exp10(CONTINGENCY_UNITS);
|
||||||
let raised_gas: U256 = (curr_gas * self.contingency) / units;
|
let raised_gas: U256 = (curr_gas * self.contingency) / units;
|
||||||
tx.set_gas(raised_gas);
|
tx.set_gas(raised_gas);
|
||||||
println!("Raised transaction gas: {raised_gas:?} wei");
|
println!("Raised transaction gas: {raised_gas:?} wei");
|
||||||
|
|
Loading…
Reference in New Issue