Skip to content

Commit dfde155

Browse files
authored
crypto/kzg4844: use reflect.TypeFor (#32319)
1 parent f49f3ec commit dfde155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crypto/kzg4844/kzg4844.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import (
3131
var content embed.FS
3232

3333
var (
34-
blobT = reflect.TypeOf(Blob{})
35-
commitmentT = reflect.TypeOf(Commitment{})
36-
proofT = reflect.TypeOf(Proof{})
34+
blobT = reflect.TypeFor[Blob]()
35+
commitmentT = reflect.TypeFor[Commitment]()
36+
proofT = reflect.TypeFor[Proof]()
3737

3838
CellProofsPerBlob = 128
3939
)

0 commit comments

Comments
 (0)