Skip to content

Commit 1c08c87

Browse files
crStivtabaktoni
andauthored
fix: docs typos (#1393)
* Update events.md * Update interact.md * Update L1message.md --------- Co-authored-by: Toni Tabak <[email protected]>
1 parent f5bd537 commit 1c08c87

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

www/docs/guides/L1message.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Starknet.js proposes 2 functions to calculate hashes related to a L1 ➡️ L2 m
7777
// l1ToL2MessageHash = '0x2e350fa9d830482605cb68be4fdb9f0cb3e1f95a0c51623ac1a5d1bd997c2090'
7878
```
7979

80-
Can be verified here : https://sepolia.starkscan.co/message/0x2e350fa9d830482605cb68be4fdb9f0cb3e1f95a0c51623ac1a5d1bd997c2090#messagelogs
80+
Can be verified here: https://sepolia.starkscan.co/message/0x2e350fa9d830482605cb68be4fdb9f0cb3e1f95a0c51623ac1a5d1bd997c2090#messagelogs
8181

8282
- The L2 transaction hash:
8383
For the same message:
@@ -92,13 +92,13 @@ Starknet.js proposes 2 functions to calculate hashes related to a L1 ➡️ L2 m
9292
);
9393
// l1ToL2TransactionHash = '0x67d959200d65d4ad293aa4b0da21bb050a1f669bce37d215c6edbf041269c07'
9494
```
95-
Can be verified here : https://sepolia.starkscan.co/tx/0x067d959200d65d4ad293aa4b0da21bb050a1f669bce37d215c6edbf041269c07
95+
Can be verified here: https://sepolia.starkscan.co/tx/0x067d959200d65d4ad293aa4b0da21bb050a1f669bce37d215c6edbf041269c07
9696

9797
## L2 ➡️ L1 messages
9898

99-
To send a message to L1, you will just invoke a Cairo contract function, paying a fee that will pay all the processes (in L1 & L2).
99+
To send a message to L1, you will just invoke a Cairo contract function, paying a fee that will pay for all the processes (in L1 & L2).
100100

101-
If necessary you can estimate this fee with the generic `estimateInvokeFee` function:
101+
If necessary, you can estimate this fee with the generic `estimateInvokeFee` function:
102102

103103
```typescript
104104
const { suggestedMaxFee: estimatedFee1 } = await account0.estimateInvokeFee({
@@ -120,4 +120,4 @@ const l1MessageHash = await provider.getL1MessageHash(l2TransactionHash);
120120
// l1MessageHash = '0x55b3f8b6e607fffd9b4d843dfe8f9b5c05822cd94fcad8797deb01d77805532a'
121121
```
122122

123-
Can be verified here : https://sepolia.voyager.online/tx/0x28dfc05eb4f261b37ddad451ff22f1d08d4e3c24dc646af0ec69fa20e096819#messages
123+
Can be verified here: https://sepolia.voyager.online/tx/0x28dfc05eb4f261b37ddad451ff22f1d08d4e3c24dc646af0ec69fa20e096819#messages

www/docs/guides/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Some cases:
3636
- 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.
3737
- When the L1 network has triggered the execution of a L2 contract, you can store in the event some results and when it occurs.
3838

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).
4040

4141
## With the Transaction hash
4242

@@ -146,7 +146,7 @@ If you don't want to filter by key, you can either remove the `keys` parameter,
146146
:::
147147

148148
:::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 :
150150

151151
```typescript
152152
const keyFilter = [[], [num.toHex(hash.starknetKeccak('EventPanic'))]];

www/docs/guides/interact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ await provider.waitForTransaction(tx1.transaction_hash);
166166

167167
In a Starknet transaction, you can include several invoke operations. It will be performed with `account.execute`.
168168

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:
170170

171171
- address of the contract to invoke
172172
- name of the function to invoke

0 commit comments

Comments
 (0)