🧵 6/8
👉 Events & Errors 📢🚫
Events are vital in Cairo.
Declare an enum with #[derive(starknet::Event)] and add all the event structs to it.
For indexed data, use #[key].
Emit events with self.emit(EventName) 🎤.
To revert with an error message, use the assert! macro.
I started running a node on #STARKNET successfully. I am hoping for full synchronization in a couple of weeks.
If you have any questions or concerns running a node on @Starknet you can either comment or question or DM me and I’ll guide you through.
#Crypto#Node#ETH#BTC#NFT
I interviewed over 50 back-end engineers in the last 2 years.
I created a Notion based "Learn Backend Development Pack" that contains a learning path to become a backend dev based on free resources.
Retweet and reply with "free" and I'll DM it to you.
(need to follow)