Skip to content

Commit 51f3ab9

Browse files
committed
fix panic when tracing pre-euclid blocks on mpt nodes
1 parent a83f43b commit 51f3ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/logger_trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func traceCodeWithAddress(l *StructLogger, address common.Address) {
5151
keccakCodeHash := l.env.StateDB.GetKeccakCodeHash(address)
5252
codeHash := keccakCodeHash
5353
poseidonCodeHash := common.Hash{}
54-
if !l.env.chainRules.IsEuclid {
54+
if !l.env.chainRules.IsEuclid && l.env.chainConfig.Scroll.UseZktrie {
5555
poseidonCodeHash = l.env.StateDB.GetPoseidonCodeHash(address)
5656
codeHash = poseidonCodeHash
5757
}

0 commit comments

Comments
 (0)