-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced concepts: typos, wording, grammar, formatting #215
Conversation
This reverts commit e7d3b0c.
@@ -1,6 +1,6 @@ | |||
# Writing to any storage slot | |||
|
|||
On Starknet, a contract's storage is a map with 2^251 slots, where each slot is a felt which is initialized to 0. | |||
On Starknet, a contract's storage is a map with \\( 2^{251} \\) slots, where each slot is a `felt252` which is initialized to 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -23,14 +23,14 @@ pub mod ListExample { | |||
|
|||
#[storage] | |||
pub struct Storage { | |||
amount: List<u128>, | |||
amounts: List<u128>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plural form indicates a list.
@@ -1,7 +1,6 @@ | |||
use starknet::SyscallResultTrait; | |||
use starknet::{Store, SyscallResult}; | |||
use starknet::storage_access::{StorageBaseAddress, storage_address_from_base_and_offset}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Checklist
./scripts/cairo_programs_verifier.sh
successfully