Open clangenb opened 1 year ago
It shouldn't. I think we can define a safe bounded length for the url and use PalletString with BoundedVec
but I'd like the length of the bounded PalletString to be configurable by type argument. This might make sense to solve together with #155 bounded types
Alright, makes sense to me.
If I remember this correctly, we did this because we can't use
String
s inside the runtime, but I am not sure if this is the right approach. Maybe we can just usePalletString
as we use elsewhere: https://github.com/integritee-network/pallets/blob/be26e6b85f14896860ef919488e6bb4cf4b7aa29/primitives/common/src/lib.rs#L27