-
Notifications
You must be signed in to change notification settings - Fork 357
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
Bump cairo to 2.7.0-rc.1 #1025
Merged
ericnordelo
merged 8 commits into
OpenZeppelin:main
from
ericnordelo:feat/use-cairo-2.7
Jul 11, 2024
Merged
Bump cairo to 2.7.0-rc.1 #1025
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e458c32
feat: migrate modules
ericnordelo cb7bede
feat: delete cairo_project.toml
ericnordelo 89cb8d3
feat: update tests
ericnordelo 16082de
feat: apply review updates
ericnordelo d3e64ff
Merge branch 'main' of github.com:OpenZeppelin/cairo-contracts into f…
ericnordelo d7f61cc
fix: remove extra line
ericnordelo da3ca37
feat: add CHANGELOG entry
ericnordelo 483f16f
fix: CHANGELOG
ericnordelo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
name = "openzeppelin" | ||
version = "0.14.0" | ||
edition = "2023_11" | ||
cairo-version = "2.6.4" | ||
scarb-version = "2.6.5" | ||
cairo-version = "2.7.0-rc.1" | ||
scarb-version = "2.7.0-rc.1" | ||
authors = ["OpenZeppelin Community <[email protected]>"] | ||
description = "OpenZeppelin Contracts written in Cairo for StarkNet, a decentralized ZK Rollup" | ||
documentation = "https://docs.openzeppelin.com/contracts-cairo" | ||
|
@@ -13,7 +13,10 @@ license-file = "LICENSE" | |
keywords = ["openzeppelin", "starknet", "cairo", "contracts", "security", "standards"] | ||
|
||
[dependencies] | ||
starknet = "2.6.4" | ||
starknet = "2.7.0-rc.1" | ||
|
||
[dev-dependencies] | ||
cairo_test = "2.7.0-rc.1" | ||
|
||
[lib] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ pub mod AccountComponent { | |
use starknet::get_tx_info; | ||
|
||
#[storage] | ||
struct Storage { | ||
pub struct Storage { | ||
Account_public_key: felt252 | ||
} | ||
|
||
|
@@ -327,8 +327,8 @@ pub mod AccountComponent { | |
|
||
/// Validates that `new_owner` accepted the ownership of the contract. | ||
/// | ||
/// WARNING: This function assumes that `current_owner` is the current owner of the contract, and | ||
/// does not validate this assumption. | ||
/// WARNING: This function assumes that `current_owner` is the current owner of the | ||
/// contract, and does not validate this assumption. | ||
Comment on lines
-330
to
+331
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do like that the formatter enforces this |
||
/// | ||
/// Requirements: | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
pub(crate) mod common; | ||
|
||
mod test_accesscontrol; | ||
mod test_dual_accesscontrol; | ||
mod test_dual_ownable; | ||
// mod test_accesscontrol; | ||
// mod test_dual_accesscontrol; | ||
// mod test_dual_ownable; | ||
ericnordelo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
mod test_ownable; | ||
mod test_ownable_twostep; | ||
// mod test_ownable_twostep; | ||
|
||
ericnordelo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why is this public?
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.
I had an issue using the Storage in a preset in the migration to the new edition IIRC, but it seems it works without it at least now. I will remove the public key from the components storage struct.
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.
They moved it into an edition it seems.