forked from TrueCloudLab/frostfs-node
[#505] morph/container: Change parsing of eACL contract method's result
`eACL` method of `Container` contract returns structure with 4 fields (the 4th is a recently added binary session token). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
70f800eb76
commit
8448207854
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ func (c *Client) EACL(args EACLArgs) (*EACLValues, error) {
|
||||||
return nil, fmt.Errorf("could not get item array of eACL (%s): %w", c.eaclMethod, err)
|
return nil, fmt.Errorf("could not get item array of eACL (%s): %w", c.eaclMethod, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(arr) != 3 {
|
if len(arr) != 4 {
|
||||||
return nil, fmt.Errorf("unexpected eacl stack item count (%s): %d", c.eaclMethod, len(arr))
|
return nil, fmt.Errorf("unexpected eacl stack item count (%s): %d", c.eaclMethod, len(arr))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue