[#525] v2/container: Return session token in GetExtendedACL

In recent API changes `GetExtendedACLResponseBody` carries session token.
In recent API Go lib changes `eacl.Table` structure carries related session
token.

Write session token of eACL table from sidechain to GetExtendedACL response
body in node's `ContainerService` server.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-25 18:12:23 +03:00 committed by Leonard Lyubich
parent a7f71bf167
commit 615813d6de

View file

@ -110,6 +110,7 @@ func (s *morphExecutor) GetExtendedACL(ctx context.Context, body *container.GetE
res := new(container.GetExtendedACLResponseBody)
res.SetEACL(table.ToV2())
res.SetSignature(signature.ToV2())
res.SetSessionToken(table.SessionToken().ToV2())
return res, nil
}