Skip to content

Commit

Permalink
Bump cairo version to 0.17.0 (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnordelo authored Sep 26, 2024
1 parent 9280664 commit 53165a1
Show file tree
Hide file tree
Showing 17 changed files with 130 additions and 110 deletions.
3 changes: 3 additions & 0 deletions packages/core-cairo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

- Add ERC721Enumerable. ([#391](https://github.com/OpenZeppelin/contracts-wizard/pull/391))

- **Breaking changes**:
- Use OpenZeppelin Contracts for Cairo v0.17.0. ([#396](https://github.com/OpenZeppelin/contracts-wizard/pull/396))

## 0.15.0 (2024-09-19)

- Add Account and EthAccount. ([#387](https://github.com/OpenZeppelin/contracts-wizard/pull/387))
Expand Down
48 changes: 24 additions & 24 deletions packages/core-cairo/src/account.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -70,7 +70,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -175,7 +175,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -219,7 +219,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -284,7 +284,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -332,7 +332,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -399,7 +399,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -466,7 +466,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -535,7 +535,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -604,7 +604,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -675,7 +675,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -746,7 +746,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -808,7 +808,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -853,7 +853,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -915,7 +915,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -960,7 +960,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1026,7 +1026,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1075,7 +1075,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1143,7 +1143,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1211,7 +1211,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1281,7 +1281,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1351,7 +1351,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1423,7 +1423,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down
Binary file modified packages/core-cairo/src/account.test.ts.snap
Binary file not shown.
14 changes: 7 additions & 7 deletions packages/core-cairo/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -44,7 +44,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -89,7 +89,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand Down Expand Up @@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod Foo {␊
Expand Down
Binary file modified packages/core-cairo/src/contract.test.ts.snap
Binary file not shown.
16 changes: 8 additions & 8 deletions packages/core-cairo/src/custom.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand All @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down Expand Up @@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down Expand Up @@ -161,7 +161,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down Expand Up @@ -217,7 +217,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand All @@ -232,7 +232,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down Expand Up @@ -288,7 +288,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
Expand Down Expand Up @@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.17.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down
Binary file modified packages/core-cairo/src/custom.test.ts.snap
Binary file not shown.
Loading

0 comments on commit 53165a1

Please sign in to comment.