We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b888c commit c4e789bCopy full SHA for c4e789b
cmd/workload/historytestgen.go
@@ -132,9 +132,8 @@ func generateHistoryTests(clictx *cli.Context) error {
132
}
133
134
func calcReceiptsHash(rcpt []*types.Receipt) common.Hash {
135
- h := crypto.NewKeccakState()
136
- rlp.Encode(h, rcpt)
137
- return common.Hash(h.Sum(nil))
+ encoded, _ := rlp.EncodeToBytes(rcpt)
+ return crypto.Keccak256Hash(encoded)
138
139
140
func writeJSON(fileName string, value any) {
0 commit comments