-
Notifications
You must be signed in to change notification settings - Fork 451
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
Make sub pointers depend on DeriveStorage. #5890
Conversation
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.
Reviewed 4 of 19 files at r1, all commit messages.
Reviewable status: 4 of 19 files reviewed, 2 unresolved discussions (waiting on @gilbens-starkware)
corelib/src/starknet/storage.cairo
line 529 at r1 (raw file):
#[feature("simple-storage-layout")] impl u256SubPointersImpl< impl i: starknet::storage_access::SimpleStorageLayout<u256>
Suggestion:
+starknet::storage_access::SimpleStorageLayout<u256>
corelib/src/starknet/storage_access.cairo
line 99 at r1 (raw file):
note: "Manually implementing `SimpleStorageLayout` is not advised. Use #[derive(Store)] instead." )] pub trait SimpleStorageLayout<T> {}
so that the error would actually be clear.
Suggestion:
pub trait DeriveStorage<T> {}
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.
Reviewed 15 of 19 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @gilbens-starkware)
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @orizi)
corelib/src/starknet/storage.cairo
line 529 at r1 (raw file):
#[feature("simple-storage-layout")] impl u256SubPointersImpl< impl i: starknet::storage_access::SimpleStorageLayout<u256>
Done.
corelib/src/starknet/storage_access.cairo
line 99 at r1 (raw file):
Previously, orizi wrote…
so that the error would actually be clear.
Done.
8d45272
to
0b39382
Compare
032d76f
to
0be7eb5
Compare
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.
Reviewed 18 of 18 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
crates/cairo-lang-starknet/src/plugin/consts.rs
line 24 at r2 (raw file):
pub const EVENT_TRAIT: &str = "starknet::Event"; pub const STORE_TRAIT: &str = "starknet::Store"; pub const SIMPLE_STORAGE_LAYOUT_TRAIT: &str = "starknet::storage_access::DeriveStorage";
rename constant.
0b39382
to
db0bcaf
Compare
0be7eb5
to
73e6545
Compare
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.
Reviewable status: 18 of 19 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-starknet/src/plugin/consts.rs
line 24 at r2 (raw file):
Previously, orizi wrote…
rename constant.
Done.
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @gilbens-starkware)
0a0606f
to
6d64937
Compare
6d64937
to
9a1596f
Compare
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.
Reviewed 18 of 18 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
-- commits
line 2 at r4:
reword.
commit-id:b6047b21
9a1596f
to
e9e8018
Compare
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)
Previously, orizi wrote…
reword.
Done.
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.
Reviewed all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @gilbens-starkware)
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)