Skip to content

Commit d7eaf3b

Browse files
committed
ci checks
1 parent 493e263 commit d7eaf3b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/revive-strategy/src/cheatcodes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ fn post_exec(
10741074
let dual_compiled_contracts = &ctx.dual_compiled_contracts;
10751075

10761076
let call_traces = externalities.execute_with(|| {
1077-
tracer.apply_prestate_trace(ecx, &dual_compiled_contracts);
1077+
tracer.apply_prestate_trace(ecx, dual_compiled_contracts);
10781078
tracer.collect_call_traces()
10791079
});
10801080
if let Some(traces) = call_traces

crates/revive-strategy/src/tracing/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Tracer {
7373
for (key, PrestateTraceInfo { balance, nonce, code, mut storage }) in post {
7474
let address = Address::from_slice(key.as_bytes());
7575

76-
let is_create = ecx.journaled_state.state.get(&address).is_none();
76+
let is_create = !ecx.journaled_state.state.contains_key(&address);
7777

7878
ecx.journaled_state.load_account(address).expect("account could not be loaded");
7979

@@ -107,13 +107,13 @@ impl Tracer {
107107
.storage_slots
108108
.iter()
109109
.map(|slot| {
110-
let slot_key = B256::from(RU256::from_str(&slot).unwrap());
110+
let slot_key = B256::from(RU256::from_str(slot).unwrap());
111111
let slot = PBytes::from(slot_key.0.to_vec());
112112
(
113113
slot,
114114
Pallet::<Runtime>::get_storage(key, slot_key.0)
115115
.unwrap_or(None)
116-
.map(|v| PBytes::from(v)),
116+
.map(PBytes::from),
117117
)
118118
})
119119
.collect();

testdata/default/revive/StoreExtra.t.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import "ds-test/test.sol";
55
import "cheats/Vm.sol";
66
import "../../default/logs/console.sol";
77

8-
98
contract Storage {
109
uint256 public slot0 = 10;
1110
uint256 public slot1 = 20;
11+
1212
function setSlot0(uint256 value) public {
1313
slot0 = value;
1414
}
15-
15+
1616
function setSlot1(uint256 value) public {
1717
slot1 = value;
1818
}
@@ -45,4 +45,4 @@ contract StoreTestExtra is DSTest {
4545
assertEq(store.slot0(), 1, "store failed");
4646
assertEq(store.slot1(), 20, "store failed");
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)