diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index cea12685..c36386b4 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -248,7 +248,8 @@ func deleteObject(cmd *cobra.Command, _ []string) error { if err != nil { return err } - err = cli.DeleteObject(ctx, + + tombstoneAddr, err := client.DeleteObject(cli, ctx, new(client.DeleteObjectParams).WithAddress(objAddr), client.WithTTL(getTTL()), client.WithSession(tok), @@ -258,7 +259,7 @@ func deleteObject(cmd *cobra.Command, _ []string) error { } cmd.Println("Object removed successfully.") - cmd.Printf(" ID: %s\n CID: %s\n", objAddr.ObjectID(), objAddr.ContainerID()) + cmd.Printf(" ID: %s\n CID: %s\n", tombstoneAddr.ObjectID(), tombstoneAddr.ContainerID()) return nil } diff --git a/go.mod b/go.mod index 2d3b2286..ad6069bd 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/multiformats/go-multihash v0.0.13 // indirect github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.91.1-pre.0.20201030072836-71216865717b - github.com/nspcc-dev/neofs-api-go v1.20.3-0.20201210152623-803c91b3eb2b + github.com/nspcc-dev/neofs-api-go v1.20.3-0.20201211081945-1bc91466aa7b github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/nspcc-dev/tzhash v1.4.0 github.com/panjf2000/ants/v2 v2.3.0 diff --git a/go.sum b/go.sum index 51bd1a9c..44eb3324 100644 Binary files a/go.sum and b/go.sum differ