From d29e98d9fd1616a2154061a2230db6d2a255783f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 7 Aug 2025 16:15:23 +0200 Subject: [PATCH] Update reflect.go --- accounts/abi/reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/reflect.go b/accounts/abi/reflect.go index 38d8028d7f..f6696ea978 100644 --- a/accounts/abi/reflect.go +++ b/accounts/abi/reflect.go @@ -90,7 +90,7 @@ func reflectIntType(unsigned bool, size int) reflect.Type { // mustArrayToByteSlice creates a new byte slice with the exact same size as value // and copies the bytes in value to the new slice. func mustArrayToByteSlice(value reflect.Value) reflect.Value { - slice := reflect.MakeSlice(reflect.TypeFor[[]byte](), value.Len(), value.Len()) + slice := reflect.ValueOf(make([]byte, value.Len())) reflect.Copy(slice, value) return slice }