Skip to content

Commit 85f09b8

Browse files
committed
fix: error TransferError::CreateCollision in revm
1 parent 7068adb commit 85f09b8

File tree

1 file changed

+5
-0
lines changed
  • crates/storage/rpc-db/src

1 file changed

+5
-0
lines changed

crates/storage/rpc-db/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ impl<P: Provider<N> + Clone, N: Network> RpcDb<P, N> {
237237

238238
for tx_trace in prestate.0 {
239239
for (address, account) in tx_trace.result {
240+
// Fix error "TransferError::CreateCollision" in revm.
241+
if account.nonce == Some(1) {
242+
continue;
243+
}
244+
240245
if !self.accounts.read().map_err(|_| RpcDbError::Poisoned)?.contains_key(&address) {
241246
let bytecode = account.code.clone().map(Bytecode::new_raw);
242247
// Some RPC will return incorrect code and nonce for accounts with EIP-7702,

0 commit comments

Comments
 (0)