Update abifuzzer_test.go

This commit is contained in:
Felix Lange 2025-08-07 16:16:03 +02:00 committed by GitHub
parent d29e98d9fd
commit 12067d66f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ func unpackPack(abi ABI, method string, input []byte) ([]interface{}, bool) {
func packUnpack(abi ABI, method string, input *[]interface{}) bool { func packUnpack(abi ABI, method string, input *[]interface{}) bool {
if packed, err := abi.Pack(method, input); err == nil { if packed, err := abi.Pack(method, input); err == nil {
outptr := reflect.New(reflect.TypeFor[*[]interface{}]()) outptr := reflect.New(reflect.TypeOf(input))
err := abi.UnpackIntoInterface(outptr.Interface(), method, packed) err := abi.UnpackIntoInterface(outptr.Interface(), method, packed)
if err != nil { if err != nil {
panic(err) panic(err)