[#160] sdk/client: Set object identifier in Head result

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/feature/refactor-sig-rpc
Leonard Lyubich 2020-09-25 17:35:36 +03:00 committed by Alex Vanin
parent c814cc62fa
commit 2cc58e36f8
1 changed files with 4 additions and 1 deletions

View File

@ -577,8 +577,11 @@ func (c *Client) getObjectHeaderV2(ctx context.Context, p *ObjectHeaderParams, o
obj := new(v2object.Object)
obj.SetHeader(hdr)
raw := object.NewRawFromV2(obj)
raw.SetID(p.addr.GetObjectID())
// convert the object
return object.NewFromV2(obj), nil
return raw.Object(), nil
}
func (p *RangeDataParams) WithAddress(v *object.Address) *RangeDataParams {