polkadot
polkadot copied to clipboard
Use a more typesafe approach for managing indexed data
My attempt to resolve issue: #2403
Currently incomplete, having an error at polkadot-erasure-coding preventing me from testing, was hoping to get some advice and confirmation that I'm going about this the right way!
@eskimor
Thanks so much for the review! @eskimor Will keep at it and implement the suggested changes ❤️
I'd vote for creating our own type-wrapper for Vec instead of using a dependency. We don't seem to need most of its methods other than type-safe indexing, which can be implemented easily as pointed out in https://github.com/paritytech/polkadot-sdk/issues/978.
As a side note, please revert unrelated changes.
I'd vote for creating our own type-wrapper for
Vecinstead of using a dependency. We don't seem to need most of its methods other than type-safe indexing, which can be implemented easily as pointed out in #2403 (comment).
~~Might need a bit of assistance/step through with this, but I think I have an idea of how to implement the change. Also, could I get help with why the checks are failing?~~ Working on it
As a side note, please revert unrelated changes.
Which changes?
Not the best at git. Apologies for the numerous pushes
Going to reattempt this from scratch