Skip to content

Commit

Permalink
chore: update to cairo v2.3.0-rc0
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Oct 10, 2023
1 parent d9a3cac commit 105ee33
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-cairo-programs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
- name: Install scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
scarb-version: "2.3.0-rc1"

- name: Run build script
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify_cairo_programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
scarb-version: "2.3.0-rc1"

- name: Run build script
run: |
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 0.7.0
scarb 2.3.0-rc1
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "StarknetByExample"
name = "sbe"
version = "0.1.0"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "calling_other_contracts"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/constructor/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "constructor"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/counter/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "counter"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/custom_type_serde/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "custom_type_serde"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/errors/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "errors"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
1 change: 0 additions & 1 deletion listings/ch00-introduction/errors/src/custom_errors.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ mod CustomErrorsExample {
assert(i > 0, Errors::NOT_POSITIVE);
}

#[view]
fn test_panic(self: @ContractState, i: u256) {
if (i == 0) {
panic_with_felt252(Errors::NOT_NULL);
Expand Down
2 changes: 1 addition & 1 deletion listings/ch00-introduction/events/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "counter"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/interfaces_traits/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "interfaces_traits"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/mappings/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "maps"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/storing_custom_types/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "storing_custom_types"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/testing/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "tests"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/variables/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "variables"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch00-introduction/visibility/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "visibility"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch01-advanced-concepts/storing_arrays/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "storing_arrays"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ impl StoreFelt252Array of Store<Array<felt252>> {
Store::<felt252>::write_at_offset(address_domain, base, offset, element);
offset += Store::<felt252>::size();
},
Option::None(_) => {
break Result::Ok(());
}
Option::None(_) => { break Result::Ok(()); }
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "src"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "write_to_any_slot"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch02-applications/simple_vault/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "simple_vault"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch02-applications/upgradeable_contract/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "upgradeable_contract"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]
2 changes: 1 addition & 1 deletion listings/ch03-optimisations/store_using_packing/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name = "store_using_packing"
version = "0.1.0"

[dependencies]
starknet = ">=2.2.0"
starknet = ">=2.3.0-rc0"

[[target.starknet-contract]]

0 comments on commit 105ee33

Please sign in to comment.