Skip to content

Commit 58b4376

Browse files
committed
handle byte conversion
1 parent 18a9027 commit 58b4376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/keccak_ziren.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ func Keccak256(data ...[]byte) []byte {
118118

119119
// Keccak256Hash calculates and returns the Keccak256 hash as a Hash using the Ziren zkvm_runtime implementation.
120120
func Keccak256Hash(data ...[]byte) common.Hash {
121-
return common.Hash(Keccak256(data...))
121+
return common.BytesToHash(Keccak256(data...))
122122
}

0 commit comments

Comments
 (0)