From 48f2730d8c4e24603eebbfdd45c48e21e01c97bf Mon Sep 17 00:00:00 2001 From: gooddayniceday <155267459+gooddayniceday@users.noreply.github.com> Date: Tue, 4 Feb 2025 22:35:28 +0100 Subject: [PATCH] spelling issues in documents (#1864) * 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 <12214231+alexandratran@users.noreply.github.com> --- services/reference/unichain/quickstart.md | 2 +- .../zksync/json-rpc-methods/zks_getbridgecontracts.mdx | 4 ++-- services/reference/zksync/quickstart.md | 2 +- .../ethereum/deploy-a-contract-using-web3.js.md | 2 +- ...retrieve-and-display-erc-721-and-erc-1155-tokens.md | 2 +- .../retrieve-the-balance-of-an-erc-20-token.md | 2 +- .../tutorials/ethereum/send-a-transaction/use-rust.md | 4 ++-- .../ethereum/send-a-transaction/use-web3.js.md | 2 +- .../ethereum/subscribe-to-pending-transactions.md | 10 +++++----- .../tutorials/ethereum/track-erc-20-token-transfers.md | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/services/reference/unichain/quickstart.md b/services/reference/unichain/quickstart.md index afde10ecda3..1238f932ee2 100644 --- a/services/reference/unichain/quickstart.md +++ b/services/reference/unichain/quickstart.md @@ -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 diff --git a/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx b/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx index 32f06dc0305..925ab817f88 100644 --- a/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx +++ b/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx @@ -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 @@ -63,4 +63,4 @@ wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2. ``` - \ No newline at end of file + diff --git a/services/reference/zksync/quickstart.md b/services/reference/zksync/quickstart.md index afb9ba0e3a6..b659c38ee87 100644 --- a/services/reference/zksync/quickstart.md +++ b/services/reference/zksync/quickstart.md @@ -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 diff --git a/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md b/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md index 6eabf1530a8..a1fbb109592 100644 --- a/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md +++ b/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md @@ -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}` ) } diff --git a/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md b/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md index 879bbd5be1e..4d0e07fa906 100644 --- a/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md +++ b/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md @@ -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") diff --git a/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md b/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md index 50e263e0437..d221f174ba8 100644 --- a/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md +++ b/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md @@ -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") diff --git a/services/tutorials/ethereum/send-a-transaction/use-rust.md b/services/tutorials/ethereum/send-a-transaction/use-rust.md index 928e6323a25..1d59a82b550 100644 --- a/services/tutorials/ethereum/send-a-transaction/use-rust.md +++ b/services/tutorials/ethereum/send-a-transaction/use-rust.md @@ -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::()? @@ -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::()? diff --git a/services/tutorials/ethereum/send-a-transaction/use-web3.js.md b/services/tutorials/ethereum/send-a-transaction/use-web3.js.md index 734c12ecad8..8d0bedd5575 100644 --- a/services/tutorials/ethereum/send-a-transaction/use-web3.js.md +++ b/services/tutorials/ethereum/send-a-transaction/use-web3.js.md @@ -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. ::: diff --git a/services/tutorials/ethereum/subscribe-to-pending-transactions.md b/services/tutorials/ethereum/subscribe-to-pending-transactions.md index 2de2cb52d66..965e09589c9 100644 --- a/services/tutorials/ethereum/subscribe-to-pending-transactions.md +++ b/services/tutorials/ethereum/subscribe-to-pending-transactions.md @@ -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: @@ -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. @@ -68,7 +68,7 @@ Replace `` 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: @@ -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: @@ -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: diff --git a/services/tutorials/ethereum/track-erc-20-token-transfers.md b/services/tutorials/ethereum/track-erc-20-token-transfers.md index 5e94ad30088..84790b4dd0d 100644 --- a/services/tutorials/ethereum/track-erc-20-token-transfers.md +++ b/services/tutorials/ethereum/track-erc-20-token-transfers.md @@ -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");