New answers tagged

0

func decodeTxParams(abi abi.ABI, v map[string]interface{}, data []byte) (map[string]interface{}, error) { m, err := abi.MethodById(data[:4]) if err != nil { return map[string]interface{}{}, err } if err := m.Inputs.UnpackIntoMap(v, data[4:]); err != nil { return map[string]interface{}{}, err } return v, nil }


Top 50 recent answers are included