@@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
9
9
> Snapshot 1
10
10
11
11
`// SPDX-License-Identifier: MIT␊
12
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
12
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
13
13
␊
14
14
#[starknet::contract]␊
15
15
mod MyContract {␊
@@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
24
24
> Snapshot 1
25
25
26
26
`// SPDX-License-Identifier: MIT␊
27
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
27
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
28
28
␊
29
29
#[starknet::contract]␊
30
30
mod MyContract {␊
@@ -69,7 +69,7 @@ Generated by [AVA](https://avajs.dev).
69
69
impl UpgradeableImpl of IUpgradeable<ContractState> {␊
70
70
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {␊
71
71
self.ownable.assert_only_owner();␊
72
- self.upgradeable._upgrade (new_class_hash);␊
72
+ self.upgradeable.upgrade (new_class_hash);␊
73
73
}␊
74
74
}␊
75
75
}␊
@@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev).
80
80
> Snapshot 1
81
81
82
82
`// SPDX-License-Identifier: MIT␊
83
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
83
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
84
84
␊
85
85
#[starknet::contract]␊
86
86
mod MyContract {␊
@@ -134,7 +134,7 @@ Generated by [AVA](https://avajs.dev).
134
134
impl UpgradeableImpl of IUpgradeable<ContractState> {␊
135
135
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {␊
136
136
self.ownable.assert_only_owner();␊
137
- self.upgradeable._upgrade (new_class_hash);␊
137
+ self.upgradeable.upgrade (new_class_hash);␊
138
138
}␊
139
139
}␊
140
140
␊
@@ -144,13 +144,13 @@ Generated by [AVA](https://avajs.dev).
144
144
#[external(v0)]␊
145
145
fn pause(ref self: ContractState) {␊
146
146
self.ownable.assert_only_owner();␊
147
- self.pausable._pause ();␊
147
+ self.pausable.pause ();␊
148
148
}␊
149
149
␊
150
150
#[external(v0)]␊
151
151
fn unpause(ref self: ContractState) {␊
152
152
self.ownable.assert_only_owner();␊
153
- self.pausable._unpause ();␊
153
+ self.pausable.unpause ();␊
154
154
}␊
155
155
}␊
156
156
}␊
@@ -161,7 +161,7 @@ Generated by [AVA](https://avajs.dev).
161
161
> Snapshot 1
162
162
163
163
`// SPDX-License-Identifier: MIT␊
164
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
164
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
165
165
␊
166
166
#[starknet::contract]␊
167
167
mod MyContract {␊
@@ -206,7 +206,7 @@ Generated by [AVA](https://avajs.dev).
206
206
impl UpgradeableImpl of IUpgradeable<ContractState> {␊
207
207
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {␊
208
208
self.ownable.assert_only_owner();␊
209
- self.upgradeable._upgrade (new_class_hash);␊
209
+ self.upgradeable.upgrade (new_class_hash);␊
210
210
}␊
211
211
}␊
212
212
}␊
@@ -217,7 +217,7 @@ Generated by [AVA](https://avajs.dev).
217
217
> Snapshot 1
218
218
219
219
`// SPDX-License-Identifier: MIT␊
220
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
220
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
221
221
␊
222
222
#[starknet::contract]␊
223
223
mod MyContract {␊
@@ -232,7 +232,7 @@ Generated by [AVA](https://avajs.dev).
232
232
> Snapshot 1
233
233
234
234
`// SPDX-License-Identifier: MIT␊
235
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
235
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
236
236
␊
237
237
#[starknet::contract]␊
238
238
mod MyContract {␊
@@ -277,7 +277,7 @@ Generated by [AVA](https://avajs.dev).
277
277
impl UpgradeableImpl of IUpgradeable<ContractState> {␊
278
278
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {␊
279
279
self.ownable.assert_only_owner();␊
280
- self.upgradeable._upgrade (new_class_hash);␊
280
+ self.upgradeable.upgrade (new_class_hash);␊
281
281
}␊
282
282
}␊
283
283
}␊
@@ -288,7 +288,7 @@ Generated by [AVA](https://avajs.dev).
288
288
> Snapshot 1
289
289
290
290
`// SPDX-License-Identifier: MIT␊
291
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
291
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
292
292
␊
293
293
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
294
294
␊
@@ -350,7 +350,7 @@ Generated by [AVA](https://avajs.dev).
350
350
impl UpgradeableImpl of IUpgradeable<ContractState> {␊
351
351
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {␊
352
352
self.accesscontrol.assert_only_role(UPGRADER_ROLE);␊
353
- self.upgradeable._upgrade (new_class_hash);␊
353
+ self.upgradeable.upgrade (new_class_hash);␊
354
354
}␊
355
355
}␊
356
356
}␊
@@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev).
361
361
> Snapshot 1
362
362
363
363
`// SPDX-License-Identifier: MIT␊
364
- // Compatible with OpenZeppelin Contracts for Cairo ^0.13 .0␊
364
+ // Compatible with OpenZeppelin Contracts for Cairo ^0.14 .0␊
365
365
␊
366
366
#[starknet::contract]␊
367
367
mod MyContract {␊
@@ -408,13 +408,13 @@ Generated by [AVA](https://avajs.dev).
408
408
#[external(v0)]␊
409
409
fn pause(ref self: ContractState) {␊
410
410
self.ownable.assert_only_owner();␊
411
- self.pausable._pause ();␊
411
+ self.pausable.pause ();␊
412
412
}␊
413
413
␊
414
414
#[external(v0)]␊
415
415
fn unpause(ref self: ContractState) {␊
416
416
self.ownable.assert_only_owner();␊
417
- self.pausable._unpause ();␊
417
+ self.pausable.unpause ();␊
418
418
}␊
419
419
}␊
420
420
}␊
0 commit comments