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
Copy file name to clipboardExpand all lines: www/docs/guides/events.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Some cases:
36
36
- When a specific value is reached in a contract, an event can be created to store the fact that this value has been reached at a specific block number.
37
37
- When the L1 network has triggered the execution of a L2 contract, you can store in the event some results and when it occurs.
38
38
39
-
An event can be useful also when you invoke a contract. When you invoke a Cairo function (meaning to write in the network), the API does not authorize any response (only call functions can provide an answer). To generate an event in the code is a way to provide a response (for example for the creation of an account, an event is generated to return the account address).
39
+
An event can also be useful when you invoke a contract. When you invoke a Cairo function (meaning to write in the network), the API does not authorize any response (only call functions can provide an answer). To generate an event in the code is a way to provide a response (for example for the creation of an account, an event is generated to return the account address).
40
40
41
41
## With the Transaction hash
42
42
@@ -146,7 +146,7 @@ If you don't want to filter by key, you can either remove the `keys` parameter,
146
146
:::
147
147
148
148
:::warning CAUTION
149
-
An event can be nested in a Cairo component (See the Cairo code of the contract to verify). In this case, the array of keys will start with additional hashes, and you will have to adapt your code in consequence; in this example, we have to skip one hash :
149
+
An event can be nested in a Cairo component (See the Cairo code of the contract to verify). In this case, the array of keys will start with additional hashes, and you will have to adapt your code in consequence; in this example, we have to skip one hash :
In a Starknet transaction, you can include several invoke operations. It will be performed with `account.execute`.
168
168
169
-
We will later see this case more in detail in this dedicated [guide](multiCall.md), but in summary, you use this command with the following parameters:
169
+
We will later see this case in more detail in this dedicated [guide](multiCall.md), but in summary, you use this command with the following parameters:
0 commit comments