diff --git a/go.mod b/go.mod index 20077c5f1..8082a68ec 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/multiformats/go-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2 github.com/multiformats/go-multihash v0.0.13 // indirect github.com/nspcc-dev/neo-go v0.91.1-pre.0.20200827184617-7560aa345a78 - github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200902121740-5a6dff8c83ba + github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200911095622-47fd771ee4c5 github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/panjf2000/ants/v2 v2.3.0 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index f5e29c900..86b76638d 100644 --- a/go.sum +++ b/go.sum @@ -269,6 +269,8 @@ github.com/nspcc-dev/neo-go v0.91.1-pre.0.20200827184617-7560aa345a78 h1:stIa+nB github.com/nspcc-dev/neo-go v0.91.1-pre.0.20200827184617-7560aa345a78/go.mod h1:G6HdOWvzQ6tlvFdvFSN/PgCzLPN/X/X4d5hTjFRUDcc= github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200902121740-5a6dff8c83ba h1:S8YfqJ2F8o4KY5dP7DcBNXdJsWtTK/vtD9mcF4J/g6Y= github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200902121740-5a6dff8c83ba/go.mod h1:f5Z4UggDgVgZXnDNr2ItdGwBpVYJBKlm5Yyu2XYEiAc= +github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200911095622-47fd771ee4c5 h1:+/VTNh3tHfuBHF+Xyf/QVO/U7QTcWyJ0rPHl+b8i0kU= +github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200911095622-47fd771ee4c5/go.mod h1:FsFd1z4YzoEgPlltsUgnqna9qhcF87RHYjot0pby2L4= github.com/nspcc-dev/neofs-crypto v0.2.0/go.mod h1:F/96fUzPM3wR+UGsPi3faVNmFlA9KAEAUQR7dMxZmNA= github.com/nspcc-dev/neofs-crypto v0.2.3/go.mod h1:8w16GEJbH6791ktVqHN9YRNH3s9BEEKYxGhlFnp0cDw= github.com/nspcc-dev/neofs-crypto v0.3.0 h1:zlr3pgoxuzrmGCxc5W8dGVfA9Rro8diFvVnBg0L4ifM= diff --git a/pkg/core/object/object.go b/pkg/core/object/object.go index 6b05c92ad..faffd1851 100644 --- a/pkg/core/object/object.go +++ b/pkg/core/object/object.go @@ -17,7 +17,12 @@ type Object struct { // MarshalStableV2 marshals Object to v2 binary format. func (o *Object) MarshalStableV2() ([]byte, error) { if o != nil { - return o.ToV2().StableMarshal(nil) + v2, err := o.ToV2(nil) // fixme: remove + if err != nil { + return nil, err + } + + return v2.StableMarshal(nil) } return nil, nil