I was previously told not to use
String in ink! contracts.
Right now I'm using
Vec<u8> to represent strings, but I'm still feeling a bit unsure if I'm on the right path, mainly because:
- they're unbounded, which can lead to undefined behavior
- whenever I have
Vec<u8>on some message interface,
polkadot-jsallows me to upload a file, which feels very wrong
which type is best suited to represent strings in a contract?