From 41eb7658a41501742edb7381597578858c96affc Mon Sep 17 00:00:00 2001 From: Anonim Date: Fri, 8 Nov 2024 21:17:55 +0300 Subject: [PATCH 1/3] Fix variable name issues and grammar errors --- apps/base-docs/base-learn/docs/arrays/arrays-exercise.md | 2 +- apps/base-docs/base-learn/docs/imports/imports-sbs.md | 2 +- .../docs/introduction-to-solidity/deployment-in-remix.md | 2 +- .../introduction-to-solidity-overview.md | 2 +- apps/base-docs/base-learn/docs/learning-objectives.md | 8 ++++---- .../docs/reading-and-displaying-data/useAccount.md | 2 +- .../base-learn/docs/storage/simple-storage-sbs.md | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/base-docs/base-learn/docs/arrays/arrays-exercise.md b/apps/base-docs/base-learn/docs/arrays/arrays-exercise.md index eefecff938..dbb3e6016a 100644 --- a/apps/base-docs/base-learn/docs/arrays/arrays-exercise.md +++ b/apps/base-docs/base-learn/docs/arrays/arrays-exercise.md @@ -50,7 +50,7 @@ Write a function called `appendToNumbers` that takes a `uint[] calldata` array c At the contract level, add an `address` array called `senders` and a `uint` array called `timestamps`. -Write a function called `saveTimestamp` that takes a `uint` called `_unixTimestamp` as an argument. When called, it should add the address of the caller to the end of `senders` and the `_unixTimeStamp` to `timestamps`. +Write a function called `saveTimestamp` that takes a `uint` called `_unixTimestamp` as an argument. When called, it should add the address of the caller to the end of `senders` and the `_unixTimestamp` to `timestamps`. :::tip diff --git a/apps/base-docs/base-learn/docs/imports/imports-sbs.md b/apps/base-docs/base-learn/docs/imports/imports-sbs.md index bd21b47fb0..9158d5bccf 100644 --- a/apps/base-docs/base-learn/docs/imports/imports-sbs.md +++ b/apps/base-docs/base-learn/docs/imports/imports-sbs.md @@ -31,7 +31,7 @@ Find the documentation for the `EnumerableSet` under _Utils_. This library will Create a new file to work in and add the `pragma` and license identifier. -In Remix, you can import libraries directly from Github! +In Remix, you can import libraries directly from GitHub! ```solidity import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol"; diff --git a/apps/base-docs/base-learn/docs/introduction-to-solidity/deployment-in-remix.md b/apps/base-docs/base-learn/docs/introduction-to-solidity/deployment-in-remix.md index 3e9a8ec59d..86f5d148f2 100644 --- a/apps/base-docs/base-learn/docs/introduction-to-solidity/deployment-in-remix.md +++ b/apps/base-docs/base-learn/docs/introduction-to-solidity/deployment-in-remix.md @@ -50,7 +50,7 @@ Click the chevron to expand your contract in the Deployed Contracts section of t ![Function Buttons](../../assets/images/introduction-to-solidity/remix-contract-buttons.png) -Let's click the retrieve button first. Before clicking, make a prediction: given that the `number` variable was instantiated without a value, what do you thing the return will be? +Let's click the retrieve button first. Before clicking, make a prediction: given that the `number` variable was instantiated without a value, what do you think the return will be? Go ahead and click – the result will appear below the button as: diff --git a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md index 7eee3161ef..3ed7205a2f 100644 --- a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md +++ b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md @@ -27,7 +27,7 @@ By the end of this module, you should be able to: - Relate an overview of the history (and pace of change) of Solidity and its strengths and weaknesses - Deploy and test the Storage.sol demo contract in Remix - **Contracts and Basic Functions** - - Construct a simple ""Hello World"" contract + - Construct a simple ""Hello World" contract - Categorize basic data types - List the major differences between data types in Solidity as compared to other languages - Compare and contrast signed and unsigned integers diff --git a/apps/base-docs/base-learn/docs/learning-objectives.md b/apps/base-docs/base-learn/docs/learning-objectives.md index d71e3573a4..3e60d19674 100644 --- a/apps/base-docs/base-learn/docs/learning-objectives.md +++ b/apps/base-docs/base-learn/docs/learning-objectives.md @@ -194,8 +194,8 @@ Use the script to regenerate this file. ### [ERC-20 Implementation](./erc-20-token/erc-20-token-sbs.md) -- Describe OpenZepplin -- Import the OpenZepplin ERC-20 implementation +- Describe OpenZeppelin +- Import the OpenZeppelin ERC-20 implementation - Describe the difference between the ERC-20 standard and OpenZeppelin's ERC20.sol - Build and deploy an ERC-20 compliant token @@ -228,7 +228,7 @@ Use the script to regenerate this file. ### [The `useAccount` Hook](./reading-and-displaying-data/useAccount.md) -- Implement the `useAccount`` hook to show the user's address, connection state, network, and balance +- Implement the `useAccount` hook to show the user's address, connection state, network, and balance - Implement an `isMounted` hook to prevent hydration errors ### [The `useReadContract` Hook](./reading-and-displaying-data/useReadContract.md) @@ -255,4 +255,4 @@ Use the script to regenerate this file. - Implement wagmi's `useSimulateContract` and `useWriteContract` to send transactions to a smart contract - Configure the options in `useSimulateContract` and `useWriteContract` -- Call a smart contract function on-demand using the write function from `useWriteContract`, with arguments and a value \ No newline at end of file +- Call a smart contract function on-demand using the write function from `useWriteContract`, with arguments and a value diff --git a/apps/base-docs/base-learn/docs/reading-and-displaying-data/useAccount.md b/apps/base-docs/base-learn/docs/reading-and-displaying-data/useAccount.md index 4a82b76d8c..89b1567ba0 100644 --- a/apps/base-docs/base-learn/docs/reading-and-displaying-data/useAccount.md +++ b/apps/base-docs/base-learn/docs/reading-and-displaying-data/useAccount.md @@ -14,7 +14,7 @@ You can use this for connection-status-based rendering, to enable or disable con By the end of this guide you should be able to: -- Implement the `useAccount`` hook to show the user's address, connection state, network, and balance +- Implement the `useAccount` hook to show the user's address, connection state, network, and balance - Implement an `isMounted` hook to prevent hydration errors --- diff --git a/apps/base-docs/base-learn/docs/storage/simple-storage-sbs.md b/apps/base-docs/base-learn/docs/storage/simple-storage-sbs.md index 8ea9451e62..3194018ff0 100644 --- a/apps/base-docs/base-learn/docs/storage/simple-storage-sbs.md +++ b/apps/base-docs/base-learn/docs/storage/simple-storage-sbs.md @@ -149,7 +149,7 @@ Review the **Warning** in the [layout] section of the docs for more details! ### Add a Function to Update `age` -It would also be good to be able update the `age` value. This problem has slightly different considerations. Sadly, `age` will never go down. It should also probably only go up by one year for each update. The `++` operator works in Solidity, so we can use that to create a function that simple increments age when called. +It would also be good to be able to update the `age` value. This problem has slightly different considerations. Sadly, `age` will never go down. It should also probably only go up by one year for each update. The `++` operator works in Solidity, so we can use that to create a function that simply increments age when called.
From 90b570d0f28ac84f54726bff7d2e599a0c808a30 Mon Sep 17 00:00:00 2001 From: Anonim Date: Thu, 5 Dec 2024 06:51:38 +0300 Subject: [PATCH 2/3] reverted --- .../introduction-to-solidity-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md index 3ed7205a2f..7a38de43ce 100644 --- a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md +++ b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md @@ -27,7 +27,7 @@ By the end of this module, you should be able to: - Relate an overview of the history (and pace of change) of Solidity and its strengths and weaknesses - Deploy and test the Storage.sol demo contract in Remix - **Contracts and Basic Functions** - - Construct a simple ""Hello World" contract + - Construct a simple "Hello World" contract - Categorize basic data types - List the major differences between data types in Solidity as compared to other languages - Compare and contrast signed and unsigned integers From 3619f18ab1f928444df882c600c41cf387012670 Mon Sep 17 00:00:00 2001 From: Anonim Date: Thu, 5 Dec 2024 06:54:03 +0300 Subject: [PATCH 3/3] reverted2 --- .../introduction-to-solidity-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md index 7a38de43ce..7eee3161ef 100644 --- a/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md +++ b/apps/base-docs/base-learn/docs/introduction-to-solidity/introduction-to-solidity-overview.md @@ -27,7 +27,7 @@ By the end of this module, you should be able to: - Relate an overview of the history (and pace of change) of Solidity and its strengths and weaknesses - Deploy and test the Storage.sol demo contract in Remix - **Contracts and Basic Functions** - - Construct a simple "Hello World" contract + - Construct a simple ""Hello World"" contract - Categorize basic data types - List the major differences between data types in Solidity as compared to other languages - Compare and contrast signed and unsigned integers