Skip to content

Commit

Permalink
migrate a fix before the fix pr is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Feb 20, 2025
1 parent 2273e77 commit 23bd703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/logger_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func traceCodeWithAddress(l *StructLogger, address common.Address) {
keccakCodeHash := l.env.StateDB.GetKeccakCodeHash(address)
codeHash := keccakCodeHash
poseidonCodeHash := common.Hash{}
if !l.env.chainRules.IsEuclid {
if !l.env.chainRules.IsEuclid && l.env.chainConfig.Scroll.UseZktrie {
poseidonCodeHash = l.env.StateDB.GetPoseidonCodeHash(address)
codeHash = poseidonCodeHash
}
Expand Down

0 comments on commit 23bd703

Please # to comment.