Open morph-dev opened 2 weeks ago
Can I take this one?
Can I take this one?
@etherhood, I would wait for #1403 to be merged first, as it does background for this work. You can probably start working on top of it, but you might have to merge and resolve conflicts if there are some comments/concerns there.
I see its merged now, If it is fine with you, I will start on it
I have added some commits in WIP PR #1431 I changed inner type of RawContentKey and fixed its uses across codebase.
Should I also change Vecportalnet/src/find/query_info.rs
, which you mentioned in original issue, but there are usage of Vec
Should I also change Vec type to Bytes in all places wherever Vec is being used, as I couldn't find RawContentKey being used in
portalnet/src/find/query_info.rs
, which you mentioned in original issue, but there are usage of Vec
I would say replacing one type at the time is good (unless they have overlapping uses).
Regarding portalnet/src/find/query_info.rs
, The Vec<u8>
in RecursiveFindContentResult
should be replaces with RawContentValue
, but that should be a separate PR.
Okay thanks, that sounds about right. I think than current PR is ready for review. Can you please review it. Thanks
Instead of using
Vec<u8>
to represent raw content keys/values, we should use something likealloy_primitives::Bytes
because:We should either wrap or name the type, to avoid potential confusion (e.g. see
RawContentValue
).Some of the places:
ethportal-api/src/types/portal_wire.rs
portalnet/src/
(exampleportalnet/src/find/query_info.rs
)