Timeline for Is it possible to create a mapping where the keys are an existing array?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 10, 2021 at 8:30 | comment | added | Voldo | In my case this for loop will be executed in the costructor method so only when I deploy the contract and the array lenght is fixed at roughly 250 elements. I just wanted to know if there's a better way of populating the mapping instead of using a for loop. | |
Mar 9, 2021 at 19:57 | history | answered | Rob Hitchens | CC BY-SA 4.0 |