[#1392] eacl/v2: Use EncodeToString where possible

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-05-20 11:10:51 +03:00 committed by LeL
parent 63cdc16088
commit 3f2889a4e9

View file

@ -205,14 +205,14 @@ func (h *cfg) localObjectHeaders(addr *objectSDKAddress.Address) ([]eaclSDK.Head
func cidHeader(idCnr cid.ID) sysObjHdr {
return sysObjHdr{
k: acl.FilterObjectContainerID,
v: idCnr.String(),
v: idCnr.EncodeToString(),
}
}
func oidHeader(oid objectSDKID.ID) sysObjHdr {
return sysObjHdr{
k: acl.FilterObjectID,
v: oid.String(),
v: oid.EncodeToString(),
}
}