[#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>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-05-26 12:59:16 +03:00 committed by Leonard Lyubich
parent cfa209d74e
commit edfdc4274a
1 changed files with 3 additions and 0 deletions

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 {