From 844820785423f3abe1ae68b228518458c7bd01e7 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 25 May 2021 17:46:34 +0300 Subject: [PATCH] [#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 --- pkg/morph/client/container/eacl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/morph/client/container/eacl.go b/pkg/morph/client/container/eacl.go index ac1e02a15..fad12768e 100644 --- a/pkg/morph/client/container/eacl.go +++ b/pkg/morph/client/container/eacl.go @@ -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) } - if len(arr) != 3 { + if len(arr) != 4 { return nil, fmt.Errorf("unexpected eacl stack item count (%s): %d", c.eaclMethod, len(arr)) }