forked from TrueCloudLab/frostfs-node
[#174] Update to neofs-api-go v1.20.0
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
58fcb35fb0
commit
1caf15463e
4 changed files with 10 additions and 10 deletions
|
@ -23,8 +23,8 @@ func CheckFormat(c *container.Container) error {
|
|||
return errors.Wrap(err, "incorrect version")
|
||||
}
|
||||
|
||||
if len(c.OwnerID().ToV2().GetValue()) != owner.NEO3WalletSize {
|
||||
return errors.Wrap(owner.ErrBadID, "incorrect owner identifier")
|
||||
if ln := len(c.OwnerID().ToV2().GetValue()); ln != owner.NEO3WalletSize {
|
||||
return errors.Errorf("incorrect owner identifier: expected length %d != %d", owner.NEO3WalletSize, ln)
|
||||
}
|
||||
|
||||
if _, err := uuid.FromBytes(c.Nonce()); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue