From 89599c040f25bf489838a3bbe52a9a1405154cae Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Tue, 26 Dec 2023 12:40:53 +0000 Subject: [PATCH] #1748 fixing compatibiliti with geth prestate --- test/historicstate/hardhat/scripts/trace.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/historicstate/hardhat/scripts/trace.ts b/test/historicstate/hardhat/scripts/trace.ts index 955cfe1db..eb24558c6 100644 --- a/test/historicstate/hardhat/scripts/trace.ts +++ b/test/historicstate/hardhat/scripts/trace.ts @@ -411,6 +411,16 @@ async function verifyPrestateTraceAgainstGethTrace(_fileName: string) { return; } + + if (difference.kind == "N" && difference.path!.length == 2) { + let address = difference.path![0]; + let key = difference.path![1]; + + if (address == "CALL.address" && key == "nonce") + return; + } + + if (difference.kind == "D" && difference.path!.length == 1) { let address = difference.path![0]; if (address == ZERO_ADDRESS)