diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 60b517993..5ebdd3b86 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -432,7 +432,9 @@ func getObjectHash(cmd *cobra.Command, _ []string) error { return err } - salt, err := hex.DecodeString(cmd.Flag(getRangeHashSaltFlag).Value.String()) + strSalt := strings.TrimPrefix(cmd.Flag(getRangeHashSaltFlag).Value.String(), "0x") + + salt, err := hex.DecodeString(strSalt) if err != nil { return err }