Skip to content

Commit

Permalink
Fix Typographical Errors and Improve Documentation Clarity (#1347)
Browse files Browse the repository at this point in the history
* typos README.md

* typos function-modifiers.md

* typos filtering-an-array-sbs.md

* typos contract-verification-sbs.md

* typos hardhat-deploy-sbs.md

* typos hardhat-testing-sbs.md

* typos mappings-sbs.md

* typos simple-storage-sbs.md

* typos basenames-faq.md
  • Loading branch information
Dimitrolito authored Dec 13, 2024
1 parent 38437e3 commit aba9f0d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ If you're a builder who wants to add or update your project on the [Base Ecosyst

5. Create a pull request with your changes.

By opening a PR to add your project, you authorize and license Coinbase on a non-exclusive, worldwide, irrevocable, sublicensable, and royalty free basis to reproduce, distribute, transmit, make available, perform, display, or otherwise use the submitted Multimedia Assets for any purpose, including any marketing or promotional activities related to Base or Coinbase. Any goodwill associated with use of trademarks submitted in your Multimedia Assets will inure to your benefit. You further acknowledge and represent that you have all IP rights in the Multimedia Assets, that the Multimedia Assets do not infringe the rights of any third party, and that you have the right to grant this license to Coinbase.
By opening a PR to add your project, you authorize and license Coinbase on a non-exclusive, worldwide, irrevocable, sublicensable, and royalty-free basis to reproduce, distribute, transmit, make available, perform, display, or otherwise use the submitted Multimedia Assets for any purpose, including any marketing or promotional activities related to Base or Coinbase. Any goodwill associated with use of trademarks submitted in your Multimedia Assets will inure to your benefit. You further acknowledge and represent that you have all IP rights in the Multimedia Assets, that the Multimedia Assets do not infringe the rights of any third party, and that you have the right to grant this license to Coinbase.

**Note:** Submissions do not guarantee inclusion and all submissions are subject to review. Your project must be live on Base to potentially be included. Ensure all information is accurate and up-to-date.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ By the end of this lesson you should be able to:

By default, `public` functions can be called by **anyone**, without restriction. Often this is desirable. You want any user to be able to see what NFTs are for sale on your platform, sign up for a service, or read various items stored in state.

However, there will be many functions you **don't** want any user to be able to do, such as setting the fee for using the app, or withdrawing all of the funds in the contract! A common pattern to protect these functions is to use `modifier`s to make sure that only the owner can call these functions.
However, there will be many functions you **don't** want any user to be able to do, such as setting the fee for using the app, or withdrawing all funds in the contract! A common pattern to protect these functions is to use `modifier`s to make sure that only the owner can call these functions.

:::caution

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The simple and obvious solution is to simply iterate through `numbers` and count
Go ahead and write it on your own. It needs to:

- Instantiate a `uint` to hold the results
- Iterate through all of the values in `numbers` and increment that number if the value is even
- Iterate through all values in `numbers` and increment that number if the value is even
- Return the result

You should end up with something like:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Click the linked address to your contract to return to the contract page. You'll

:::tip

If you have imports, you'll need to right click on the name of the file and choose `Flatten`. Submit the newly generated `filename_flattened.sol` for verification.
If you have imports, you'll need to right-click on the name of the file and choose `Flatten`. Submit the newly generated `filename_flattened.sol` for verification.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Reuse `Lock__factory` but use the connect function and pass the address of the n
✔ should have the right owner
✔ shouldn't allow to withdraw before unlock time (51ms)
✔ shouldn't allow to withdraw a non owner
✔ should allow to withdraw a owner
✔ should allow to withdraw an owner
6 passing (2s)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Finally, test that the owner can withdraw. You can manipulate the time similarly
<summary>Reveal code</summary>

```tsx
it('should allow to withdraw a owner', async () => {
it('should allow to withdraw an owner', async () => {
const balanceBefore = await ethers.provider.getBalance(await lockInstance.getAddress());

// Its value will be the one we lock at deployment time.
Expand Down Expand Up @@ -320,7 +320,7 @@ You can then run `npx hardhat test` and you should get:
✔ should have the right owner
✔ shouldn"t allow to withdraw before unlock time (51ms)
✔ shouldn"t allow to withdraw a non owner
✔ should allow to withdraw a owner
✔ should allow to withdraw an owner
6 passing (2s)
```
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/base-learn/docs/mappings/mappings-sbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Deploy and test again. Success!

One challenging limitation of the `mapping` data type is that it is **not** iterable - you cannot loop through and manipulate or return **all** values in the `mapping`.

At least not with any built in features, but you can solve this on your own. A common practice in Solidity with this and similar problems is to use multiple variables or data types to store the right combination needed to address the issue.
At least not with any built-in features, but you can solve this on your own. A common practice in Solidity with this and similar problems is to use multiple variables or data types to store the right combination needed to address the issue.

### Using a Helper Array

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Learn how to Store data on the blockchain.
hide_table_of_contents: false
---

Ultimately, the power of the blockchain is that anyone can store their data on it via the `storage` in a smart contract. In this step by step guide, you'll learn how to access and use the `storage` data location.
Ultimately, the power of the blockchain is that anyone can store their data on it via the `storage` in a smart contract. In this step-by-step guide, you'll learn how to access and use the `storage` data location.

---

Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/docs/tools/basenames-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Transferring all 3 to the same address will fully transfer ownership of the Base

### 11. What happens if I forget to renew my Basename?

If you forget to renew your Name, it will enter a grace period of 90 days, during which you can still renew it. If not renewed during this period, the Basename will become available for others to register.
If you forget to renew your Name, it will enter a grace period of 90-days, during which you can still renew it. If not renewed during this period, the Basename will become available for others to register.

### 12. What happens if a Basename is not renewed during the grace period?

Expand Down

0 comments on commit aba9f0d

Please sign in to comment.