Skip to content

Commit

Permalink
Update mappings-sbs and basic-types (#170)
Browse files Browse the repository at this point in the history
* update mappings for clarity

* update typo in basic-types
  • Loading branch information
jennyg0 authored Dec 2, 2023
1 parent a29c0dd commit 17a4f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ enum Flavors { Vanilla, Chocolate, Strawberry, Coffee }
Flavors chosenFlavor = Flavors.Coffee;
```

Enums can be explicitly cast two and from `uint`, but not implicitly. They are limited to 256 members.
Enums can be explicitly cast to and from `uint`, but not implicitly. They are limited to 256 members.

---

Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/base-camp/docs/mappings/mappings-sbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Update the declaration of `favoriteNumbers` and deploy to test again.

### Utilizing msg.sender

Another issue with this contract is that `public` means anyone and everyone with a wallet and funds to pay gas fees. As a result, anyone could go in after you and change your favorite number from lucky number **13** to anything, even **7**!
Another issue with this contract is that a `public` function can be called by anyone and everyone with a wallet and funds to pay gas fees. As a result, anyone could go in after you and change your favorite number from lucky number **13** to anything, even **7**!

That won't do at all!

Expand Down

0 comments on commit 17a4f22

Please sign in to comment.