[] v2/container: Return session token and signature in Get

In recent API changes `GetResponseBody` carries session token and signature.
In recent API Go lib changes `Container` structure carries its session
token and signature.

Write session token and signature of container from sidechain to Get
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:10:34 +03:00 committed by Leonard Lyubich
parent e09529879a
commit a7f71bf167

View file

@ -65,6 +65,8 @@ func (s *morphExecutor) Get(ctx context.Context, body *container.GetRequestBody)
res := new(container.GetResponseBody) res := new(container.GetResponseBody)
res.SetContainer(cnr.ToV2()) res.SetContainer(cnr.ToV2())
res.SetSignature(cnr.Signature().ToV2())
res.SetSessionToken(cnr.SessionToken().ToV2())
return res, nil return res, nil
} }