From 959e098cb2d55b1c5de92337dc3beae858815a83 Mon Sep 17 00:00:00 2001 From: Vitaly Drogan Date: Tue, 27 Aug 2024 18:07:07 +0200 Subject: [PATCH] Comment crates/rbuilder/src/building/evm_inspector.rs (#159) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 📝 Summary Comment crates/rbuilder/src/building/evm_inspector.rs ## 💡 Motivation and Context --- ## ✅ I have completed the following steps: * [ ] Run `make lint` * [ ] Run `make test` * [ ] Added tests (if applicable) --- crates/rbuilder/src/building/evm_inspector.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/rbuilder/src/building/evm_inspector.rs b/crates/rbuilder/src/building/evm_inspector.rs index 002147b7..42e2bbf6 100644 --- a/crates/rbuilder/src/building/evm_inspector.rs +++ b/crates/rbuilder/src/building/evm_inspector.rs @@ -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 {