From 2aa40b0dd3a5a1d3fc37ce4ab77ffeb9c29477fb Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 20 Oct 2020 15:17:53 +0300 Subject: [PATCH] [#177] sdk/client: Set version of new EACL table Signed-off-by: Alex Vanin --- pkg/client/container.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/client/container.go b/pkg/client/container.go index 5c87a2b..e4eb75a 100644 --- a/pkg/client/container.go +++ b/pkg/client/container.go @@ -369,6 +369,7 @@ func (c Client) setEACLV2(ctx context.Context, eacl *eacl.Table, opts ...CallOpt reqBody := new(v2container.SetExtendedACLRequestBody) reqBody.SetEACL(eacl.ToV2()) + reqBody.GetEACL().SetVersion(c.remoteNode.Version.ToV2()) signWrapper := v2signature.StableMarshalerWrapper{SM: reqBody.GetEACL()} err := signature.SignDataWithHandler(c.key, signWrapper, func(key []byte, sig []byte) {