[#525] 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>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-05-25 18:10:34 +03:00 committed by Leonard Lyubich
parent e09529879a
commit a7f71bf167
1 changed files with 2 additions and 0 deletions

View File

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