Skip to content

Commit c4e789b

Browse files
historytestgen.go
1 parent 45b888c commit c4e789b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/workload/historytestgen.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ func generateHistoryTests(clictx *cli.Context) error {
132132
}
133133

134134
func calcReceiptsHash(rcpt []*types.Receipt) common.Hash {
135-
h := crypto.NewKeccakState()
136-
rlp.Encode(h, rcpt)
137-
return common.Hash(h.Sum(nil))
135+
encoded, _ := rlp.EncodeToBytes(rcpt)
136+
return crypto.Keccak256Hash(encoded)
138137
}
139138

140139
func writeJSON(fileName string, value any) {

0 commit comments

Comments
 (0)