Skip to content

Commit 9b9c138

Browse files
mask-ppCopilot
andauthored
Update core/state/statedb.go
Co-authored-by: Copilot <[email protected]>
1 parent e873140 commit 9b9c138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (s *StateDB) Logs() []*types.Log {
265265
for _, lgs := range s.logs {
266266
logs = append(logs, lgs...)
267267
}
268-
// Due to the map iteration is not stable, we need to sort the logs by TxIndex, then the LogsHash result is stable.
268+
// Because map iteration is not stable, we need to sort the logs by TxIndex, then the LogsHash result is stable.
269269
sort.Slice(logs, func(i, j int) bool {
270270
return logs[i].TxIndex < logs[j].TxIndex
271271
})

0 commit comments

Comments
 (0)