Skip to content

Commit 5919830

Browse files
committed
fix review
1 parent 4900c56 commit 5919830

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

crates/evm/fuzz/src/strategies/param.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ pub fn fuzz_param_from_state(
135135
value()
136136
.prop_map(move |value| {
137137
let mut fuzzed_addr = Address::from_word(value);
138-
if !deployed_libs.contains(&fuzzed_addr) {
139-
// No need to do anything
140-
} else {
138+
if deployed_libs.contains(&fuzzed_addr) {
141139
let mut rng = StdRng::seed_from_u64(0x1337); // use deterministic rng
142140

143141
// Do not use addresses of deployed libraries as fuzz input, instead return

crates/fmt/src/formatter.rs

-4
Original file line numberDiff line numberDiff line change
@@ -2093,10 +2093,6 @@ impl<W: Write> Visitor for Formatter<'_, W> {
20932093
let (ident, string) = (ident.safe_unwrap(), string.safe_unwrap());
20942094
return_source_if_disabled!(self, loc, ';');
20952095

2096-
// There are some issues with parsing Solidity's versions with crates like `semver`:
2097-
// 1. Ranges like `>=0.4.21<0.6.0` or `>=0.4.21 <0.6.0` are not parseable at all.
2098-
// 2. Versions like `0.8.10` got transformed into `^0.8.10` which is not the same.
2099-
// TODO: semver-solidity crate :D
21002096
let pragma_descriptor = &string.string;
21012097

21022098
write_chunk!(self, string.loc.end(), "pragma {} {};", &ident.name, pragma_descriptor)?;

0 commit comments

Comments
 (0)