mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Update abifuzzer_test.go
This commit is contained in:
parent
d29e98d9fd
commit
12067d66f9
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ func unpackPack(abi ABI, method string, input []byte) ([]interface{}, bool) {
|
|||
|
||||
func packUnpack(abi ABI, method string, input *[]interface{}) bool {
|
||||
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)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue