diff --git a/pkg/morph/client/util.go b/pkg/morph/client/util.go index 2fec25f50..9aa8a6077 100644 --- a/pkg/morph/client/util.go +++ b/pkg/morph/client/util.go @@ -94,6 +94,10 @@ func ArrayFromStackParameter(param sc.Parameter) ([]sc.Parameter, error) { } if param.Type != sc.ArrayType { + if param.Type == sc.AnyType && param.Value == nil { + return nil, nil + } + return nil, errors.Errorf("chain/client: %s is not an array type", param.Type) }