You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/hooks/useScaffoldEventHistory.md
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ This example configures the hook to read events from the `YourEvent` event of th
46
46
47
47
Filters can only be applied to event keys, which are event fields annotated with `#[key]`. For example, consider an event defined in a contract as follows:
48
48
49
-
```cairo
49
+
```rust
50
50
#[derive(Drop, starknet::Event)]
51
51
structGreetingChanged {
52
52
#[key]
@@ -59,31 +59,30 @@ struct GreetingChanged {
59
59
60
60
The event data will include a `keys` array:
61
61
62
-
```
62
+
```javascript
63
63
[
64
+
// The first element is the hash of the event name.
0 commit comments