When using Ink to store data in a Mapping with a tuple Key, how do you iterate through all the elements in a tuple?
thanks,
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityWhen using Ink to store data in a Mapping with a tuple Key, how do you iterate through all the elements in a tuple?
thanks,
Looping through tuples is not ideal (to put it lightly) since they are not heterogeneous.
You could tackle this in two ways:
As per this issue, right now it can't possible to iterate over storage.