Skip to content

Commit

Permalink
spelling issues in documents (#1864)
Browse files Browse the repository at this point in the history
* Update quickstart.md

* Update zks_getbridgecontracts.mdx

* Update quickstart.md

* Update use-rust.md

* Update use-web3.js.md

* Update deploy-a-contract-using-web3.js.md

* Update retrieve-and-display-erc-721-and-erc-1155-tokens.md

* Update retrieve-the-balance-of-an-erc-20-token.md

* Update subscribe-to-pending-transactions.md

* Update track-erc-20-token-transfers.md

* Update services/tutorials/ethereum/send-a-transaction/use-rust.md

---------

Co-authored-by: Alexandra Carrillo <[email protected]>
  • Loading branch information
gooddayniceday and alexandratran authored Feb 4, 2025
1 parent 87c92ad commit 48f2730
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion services/reference/unichain/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

#### Node Fetch

1. In your project folder, install the `node-fetch` package using npm::
1. In your project folder, install the `node-fetch` package using npm:

```bash
npm i node-fetch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ None.

The default bridges used in the ZKsync network:

- `1Erc20DefaultBridge` - The address of the default bridge contract responsible for handling ERC-20 token
- `l1Erc20DefaultBridge` - The address of the default bridge contract responsible for handling ERC-20 token
transfers from the L1 network to the L2 network
- `l2Erc20DefaultBridge` - The address of the default bridge contract responsible for handling ERC-20 token
transfers from the L2 network to the L1 network
Expand Down Expand Up @@ -63,4 +63,4 @@ wscat -c wss://zksync-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.
```

</TabItem>
</Tabs>
</Tabs>
2 changes: 1 addition & 1 deletion services/reference/zksync/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Don't have an Infura account? Sign up for our free plan and start using the ZKsy

## Prerequisites

Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/create-api/) with the ZKsync Era networked enabled.
Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/create-api/) with the ZKsync Era network enabled.

## Make calls

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async function main() {
// The contract is now deployed on chain!
console.log(`Contract deployed at ${deployedContract.options.address}`)
console.log(
`Add DEMO_CONTRACT to the.env file to store the contract address: ${deployedContract.options.address}`
`Add DEMO_CONTRACT to the .env file to store the contract address: ${deployedContract.options.address}`
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This example has been written for web3js v4.x. It may not work for earlier versi

### 3. Set up the script

Create a file called `retrieveBalance.js`. At the top of file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint:
Create a file called `retrieveBalance.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint:

```javascript
const { Web3 } = require("web3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ npm install web3

### 3. Set up the script

Create a file called `retrieveBalance.js`. At the top of file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint:
Create a file called `retrieveBalance.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint:

```javascript
const { Web3 } = require("web3")
Expand Down
4 changes: 2 additions & 2 deletions services/tutorials/ethereum/send-a-transaction/use-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async fn main() -> Result<()> {
// Define the signer.
// Replace the SIGNER_PRIVATE_KEY with
// the private key of your Ethereum account (without the 0x prefix).
// However, we recommended that you load it from
// However, we recommend that you load it from
// an .env file or external vault.
let wallet: LocalWallet = "SIGNER_PRIVATE_KEY"
.parse::<LocalWallet>()?
Expand Down Expand Up @@ -217,7 +217,7 @@ async fn main() -> Result<()> {
// Define the signer.
// Replace the SIGNER_PRIVATE_KEY with
// the private key of your Ethereum account (without the 0x prefix).
// However, we recommended that you load it from
// However, we recommend that you load it from
// an .env file or external vault.
let wallet: LocalWallet = "SIGNER_PRIVATE_KEY"
.parse::<LocalWallet>()?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To use an alternative network, ensure that your account has testnet ETH for that
When using an alternative network, you'll:

- Update your `.env` file in [Step 4](#4-create-a-env-file) with the alternative network name.
- Update the `chaindId` in [Step 5](#5-create-a-sendjs-file) with the alternative network chain ID.
- Update the `chainId` in [Step 5](#5-create-a-sendjs-file) with the alternative network chain ID.
:::

</TabItem>
Expand Down
10 changes: 5 additions & 5 deletions services/tutorials/ethereum/subscribe-to-pending-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Install `web3.py` and the `websockets` library:
pip install web3 websockets
```

### 2. Import project libraries
### 3. Import project libraries

Create your file (for example `subscribe.py`) and import the libraries needed for the project:

Expand All @@ -50,7 +50,7 @@ from web3 import Web3
from websockets import connect
```

### 3. Connect to Infura
### 4. Connect to Infura

Connect to Infura’s WebSockets endpoint to subscribe to new pending transactions, and Infura’s HTTP Ethereum endpoint so we can make JSON-RPC calls such as `eth_get_transaction` to get more information about a specific transaction.

Expand All @@ -68,7 +68,7 @@ Replace `<YOUR-API-KEY>` with your Infura API key, you can use the same for both

:::

### 4. Subscribe to pending transactions
### 5. Subscribe to pending transactions

Create an `async` method that connects to Infura’s WebSocket endpoint:

Expand Down Expand Up @@ -140,7 +140,7 @@ if __name__ == "__main__":
loop.run_until_complete(get_event())
```

### 5. Execute the program
### 6. Execute the program

Execute the program using the following:

Expand All @@ -159,7 +159,7 @@ You should now see the terminal fill up with Ethereum transfers:
...
```

### 6. Monitor a specific address for transactions
### 7. Monitor a specific address for transactions

You can update the program to monitor incoming transactions to a specific Ethereum address. Let’s define an account we’d like to monitor first, outside of the `get_event()` function:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This example has been written for web3js v4.x. It may not work for earlier versi

### 3. Set up the script

Create a file called `trackERC20.js`. At the top of file, add the following lines to import the web3.js library and connect to the Infura WebSocket endpoint:
Create a file called `trackERC20.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura WebSocket endpoint:

```javascript
const { Web3 } = require("web3");
Expand Down

0 comments on commit 48f2730

Please sign in to comment.