Skip to content

Commit 50ce2a3

Browse files
fix: several typos in the documentation (#140)
* fix typos scroll-messenger-cross-chain-interaction.mdx * fix typos enforced-transactions.mdx * fix typo erc1155-token-bridge.mdx * fix typo ethereum-and-scroll-differences.mdx * fix typo makeComponentNode.ts * fix typos link-to-wallet.ts * fix typo button.css
1 parent 6815706 commit 50ce2a3

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

integrations/utils/makeComponentNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function makeComponentNode(
2121
type: "mdxJsxFlowElement",
2222
name,
2323
attributes: Object.entries(attributes)
24-
// Filter out non-truthy attributes to avoid empty attrs being parsed as `true`.
24+
// Filter out non-truthy attributes to avoid empty attributes being parsed as `true`.
2525
.filter(([_k, v]) => v !== false && Boolean(v))
2626
.map(([name, value]) => ({
2727
type: "mdxJsxAttribute",

src/content/docs/en/developers/ethereum-and-scroll-differences.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type StateAccount struct {
6363

6464
Related to this, we maintain two types of codehash for each contract bytecode: Keccak hash and Poseidon hash.
6565

66-
`KeccakCodeHash` is kept to maintain compatibility for `EXTCODEHASH`. `PoseidonCodeHash` is used for verifying correctness of bytecodes loaded in the zkEVM, where Poseidon hashing is far more efficient.
66+
`KeccakCodeHash` is kept to maintain compatibility for `EXTCODEHASH`. `PoseidonCodeHash` is used for verifying the correctness of bytecodes loaded in the zkEVM, where Poseidon hashing is far more efficient.
6767

6868
### CodeSize
6969

src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ We pass the message by executing `executeFunctionCrosschain` and passing the fol
8282
- If you deployed it on Sepolia use `0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A`. If you deployed on Scroll use `0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d`.
8383
- `targetAddress`: The address of the `Greeter` contract on the opposite chain.
8484
- `value`: In this case, it is `0` because the `setGreeting`is not payable.
85-
- `greeting`: This is the parameter that will be sent through the message. Try passing `“This message was crosschain!”`
85+
- `greeting`: This is the parameter that will be sent through the message. Try passing `“This message was cross-chain!”`
8686
- `gasLimit`:
8787
- If you are sending the message from L1 to L2, around `5000` gas limit should be more than enough.
88-
- If you are sending the message from L2 to L1, pass `0`, as the transaction be completed by executing an additional transaction on L1.
88+
- If you are sending the message from L2 to L1, pass `0`, as the transaction to be completed by executing an additional transaction on L1.
8989

9090
### Relay the Message when sending from L2 to L1
9191

@@ -117,6 +117,6 @@ in the [Scroll Messenger](/developers/l1-and-l2-bridging/the-scroll-messenger) a
117117
applications and users.
118118
</Aside>
119119

120-
After executing and confirming the transaction on both L1 and L2, the new state of `greeting` on the `Greeter` contract should be `“This message was crosschain!”`. Sending a message from one chain to the other should take around 20 minutes after the transactions are confirmed on the origin chain.
120+
After executing and confirming the transaction on both L1 and L2, the new state of `greeting` on the `Greeter` contract should be `“This message was cross-chain!”`. Sending a message from one chain to the other should take around 20 minutes after the transactions are confirmed on the origin chain.
121121

122122
Congratulations, you now executed a transaction from one chain to the other using our native bridge!

src/content/docs/en/developers/l1-and-l2-bridging/enforced-transactions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Add an enforced transaction to L2 from an EOA account sender.
2525

2626
| Parameter | Description |
2727
| ---------- | ---------------------------------------------------------- |
28-
| \_target | The address of target contract to call in L2. |
28+
| \_target | The address of the target contract to call in L2. |
2929
| \_value | The value passed. |
3030
| \_gasLimit | The maximum gas should be used for this transaction in L2. |
31-
| \_data | The calldata passed to target contract. |
31+
| \_data | The calldata passed to the target contract. |
3232

3333
### sendTransaction
3434

src/content/docs/en/developers/l1-and-l2-bridging/erc1155-token-bridge.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ERC1155 bridging from L1 to L2 is done via the L1ERC1155Gateway. Similarly to ER
1616

1717
<Aside type="tip" title="">
1818
**`depositERC1155`** is a payable function, and the amount of ETH sent to this function will be used to pay for L2
19-
fees. If the amount is not enough, the transaction will not be sent. All excess eth will be sent back to sender.
19+
fees. If the amount is not enough, the transaction will not be sent. All excess eth will be sent back to the sender.
2020
`0.00001 ETH` should be more than enough to process a token deposit.
2121
</Aside>
2222

src/scripts/link-to-wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const addChainToWallet = async (chainId: string, ethereum: MetaMaskInpageProvide
182182
}
183183

184184
/**
185-
* Functions which validates the format of Link address and interfacs with the contract to make sure
185+
* Functions which validates the format of Link address and interacts with the contract to make sure
186186
* its metadata (e.g.: symbol) is valid
187187
* @param address
188188
* @param provider
@@ -246,7 +246,7 @@ try {
246246
}
247247

248248
// Detect when user initiates the chain switch from the webapp
249-
// variable chainFromSwitch used to diffenrentiate when user switch the chain
249+
// variable chainFromSwitch used to differentiate when user switch the chain
250250
// directly from wallet
251251
let chainFromSwitch: string
252252
window.addEventListener(initChainChangeEventName, (evt: any) => {

src/styles/design-system/components/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* These are the styles that will be applied for all buttons globally.
3-
* We want thse styles to be minimal, because our buttons can differ greatly,
3+
* We want these styles to be minimal, because our buttons can differ greatly,
44
* e.g. modal close button may not share styles with primary button.
55
*/
66
button {

0 commit comments

Comments
 (0)