Timeline for How to add values to array within a struct in Solidity?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 5, 2020 at 20:46 | vote | accept | João Vitor | ||
May 5, 2020 at 20:19 | comment | added | goodvibration | @JoãoVitor: It works on solc 0.4.25, and at least according to this answer, it should be allowed. Not sure about solc 0.6.x. Sorry :( | |
May 5, 2020 at 20:18 | comment | added | João Vitor | browser/StackExchange.sol:23:9: TypeError: Member "length" is read-only and cannot be used to resize arrays. listeners.length += 1; ^--------------^ | |
May 5, 2020 at 20:10 | history | answered | goodvibration | CC BY-SA 4.0 |