Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
axatbhardwaj authored Dec 16, 2022
1 parent 35cd51d commit 3bb6b68
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@
- Variable packing only occurs in storage — memory and call data does not get packed.
- You will not save space trying to pack function arguments or local variables

#### Doubt -

Q. So modifying a uint8 is cheaper than uint256?

Ans. No, storing a small number in a uint8 variable is not cheaper than storing it in uint256 coz the number in uint8 is padded with numbers to fill 32 bytes.
<aside>
💡 Storing a small number in a uint8 variable is not cheaper than storing it in uint256 coz the number in uint8 is padded with numbers to fill 32 bytes.
</aside>

### Inheritance

Expand Down

0 comments on commit 3bb6b68

Please sign in to comment.