Timeline for Store enum value in table
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2019 at 8:46 | vote | accept | Tigran Sahakyan | ||
Oct 23, 2019 at 20:24 | comment | added | netuoso - EOS Titan | Apologies for taking some time to get around to this. Please check the answer and see if it fits with more accuracy. | |
Oct 23, 2019 at 20:23 | history | edited | netuoso - EOS Titan | CC BY-SA 4.0 |
Add working code example using the types/definitions from the question
|
Oct 10, 2019 at 18:12 | comment | added | Tigran Sahakyan | Thank you, fully understood ;) Before marking your answer as accepted, could you please edit it to make it clearer. | |
Oct 10, 2019 at 13:54 | comment | added | netuoso - EOS Titan | Right so you have a name for the enum type. Then you typedef the uint8_t, and use the typedef name in place of the enum type. In the end, the enum is a declaration of a certain type of objects, in this case I used the uint8_t example. github.com/eostitan/delphioracle/blob/write-hash/include/… this example might give you more clarification | |
Oct 10, 2019 at 10:51 | comment | added | Tigran Sahakyan | What I can't understand is how do you declare the enum and then typedef the same name. You can't have enum and typdefed type at the same time. | |
Oct 10, 2019 at 9:08 | comment | added | netuoso - EOS Titan | I have personally used the suggestion I gave and it worked fine. I just had to declare the enum and then specify it's type to be picked up by the ABI. | |
Oct 10, 2019 at 9:04 | comment | added | Tigran Sahakyan | So, you agree that we can't use enum typed members in tables. The same goes for enum classes with underlying type specified. | |
Oct 10, 2019 at 7:50 | history | answered | netuoso - EOS Titan | CC BY-SA 4.0 |