[#525] morph/container: Pass session token to Delete call

Pass session token (byte array) argument to `Delete` method call of
`Container` contract.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-26 12:59:16 +03:00 committed by Leonard Lyubich
parent cfa209d74e
commit edfdc4274a

View file

@ -10,6 +10,8 @@ type DeleteArgs struct {
cid []byte // container identifier
sig []byte // container identifier signature
token []byte // binary session token
}
// SetCID sets the container identifier
@ -31,6 +33,7 @@ func (c *Client) Delete(args DeleteArgs) error {
c.deleteMethod,
args.cid,
args.sig,
args.token,
)
if err != nil {