Siloed retweeted
🧵 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.
Do you mind providing details of the hardware requirements to set up a starknet node? would appreciate
1
60







