Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

this is what the struct looks like that i have to decode, it's an array of these:

{

"address": "0x58fff802043d6e1b620b2875e04d40860941807a56f8da603907924b6b1cbd78",

"createdAt": 1734499449276,

"data": true,

"kind": "profile-completed",

"status": "valid",

"updatedAt": 1734499449276,

"userAddress": "0xff7f1e988e5545dd2e96006d9a5f674ba224c700143d23989a5adcfc9b4b506f"

},

what lives inside "data" differs depending on "kind" and so then i have to decode it once into a generic structure, and then create the actual structure of that type and copy the data into it

this is one of the most annoying things about dealing with shit designed by javascript, c++ and Rust programmers, they all don't realise their language is doing 2x as much work to do this when having a prefix label typing the thing saves a shitload of needless work

Avatar
Diacone Frost 1y ago

this really sucks for a typed language.

but guilty as charged I also use this "blob" like fields someties.

Probably something I was used to i C

Reply to this note

Please Login to reply.

Discussion

No replies yet.