Skip to content

Commit

Permalink
Comment crates/rbuilder/src/building/evm_inspector.rs (#159)
Browse files Browse the repository at this point in the history
## 📝 Summary

Comment crates/rbuilder/src/building/evm_inspector.rs

## 💡 Motivation and Context

<!--- (Optional) Why is this change required? What problem does it
solve? Remove this section if not applicable. -->

---

## ✅ I have completed the following steps:

* [ ] Run `make lint`
* [ ] Run `make test`
* [ ] Added tests (if applicable)
  • Loading branch information
dvush authored Aug 27, 2024
1 parent 45f8be7 commit 959e098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rbuilder/src/building/evm_inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ impl<'a> UsedStateEVMInspector<'a> {
}
}

/// This method is used to mark nonce change as a slot read / write.
/// Txs with the same nonce are in conflict and origin address is EOA that does not have storage.
/// We convert nonce change to the slot 0 read and write of the signer
fn use_tx_nonce(&mut self, tx: &TransactionSignedEcRecovered) {
self.used_state_trace.read_slot_values.insert(
SlotKey {
Expand Down

0 comments on commit 959e098

Please sign in to comment.