diff --git a/cli/state.go b/cli/state.go index bef864dd2..5899dfdb1 100644 --- a/cli/state.go +++ b/cli/state.go @@ -1617,7 +1617,7 @@ func parseParamsForMethod(act cid.Cid, method uint64, args []string) ([]byte, er return nil, fmt.Errorf("unknown method %d for actor %s", method, act) } - paramObj := methodMeta.Params + paramObj := methodMeta.Params.Elem() if paramObj.NumField() != len(args) { return nil, fmt.Errorf("not enough arguments given to call that method (expecting %d)", paramObj.NumField()) }