Skip to main content

Questions tagged [mapping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
52 views

AssetHub interaction with AccountId20

Say I want to send and receive tokens from AssetHub in my chain that is using AccountId20 format to interact with internal pallets. I understand that Rococo uses AccountId32 so how would I go about ...
Valentin Fernandez's user avatar
0 votes
1 answer
70 views

how to remove Mapping storage when tuple is used as input

Lets assume we have an ink! smart contract On a vanilla Mapping alpha: Mapping<[u8;32], Astruct> we can use self.alpha.remove(&somehash) My question is this: if we have the following ...
Sokrates's user avatar
  • 421
4 votes
0 answers
43 views

Migration from legacy HashMap to Mapping

I have following code where I want to use with new Mapping (now it works but with legacy HashMap). I think that the source code below is self-explanatory: self.balances .entry(caller) ...
Tomasz Waszczyk's user avatar