[#1377] oid, cid: Upgrade SDK package

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-12 19:37:46 +03:00 committed by LeL
parent f65898a354
commit f15e6e888f
118 changed files with 1455 additions and 886 deletions

View file

@ -1,6 +1,7 @@
package container
import (
"crypto/sha256"
"fmt"
core "github.com/nspcc-dev/neofs-node/pkg/core/container"
@ -22,9 +23,12 @@ func Delete(c *Client, witness core.RemovalWitness) error {
return fmt.Errorf("could not marshal session token: %w", err)
}
binCnr := make([]byte, sha256.Size)
id.Encode(binCnr)
return c.Delete(
DeletePrm{
cid: id.ToV2().GetValue(),
cid: binCnr,
signature: witness.Signature(),
token: binToken,
})