[#174] Update to neofs-api-go v1.20.0

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-17 11:51:49 +03:00 committed by Alex Vanin
parent 58fcb35fb0
commit 1caf15463e
4 changed files with 10 additions and 10 deletions

View file

@ -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 {