forked from TrueCloudLab/frostfs-node
[#11] morph: Return nil on Any stack item array type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f71d64435e
commit
9e30a87022
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue