File tree 6 files changed +29
-25
lines changed
6 files changed +29
-25
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
19
19
- "invalid syscall selector" error appearing when using arithmetic circuits
20
20
21
+ ### Cast
22
+
23
+ #### Updated
24
+
25
+ - OpenZeppelin account updated to v1.0.0 [ preset] ( https://docs.openzeppelin.com/contracts-cairo/1.0.0/api/account#AccountUpgradeable )
26
+
21
27
## [ 0.43.0] - 2025-05-09
22
28
23
29
### Forge
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ inputs = []
18
18
pub const UDC_ADDRESS : Felt =
19
19
felt ! ( "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf" ) ;
20
20
pub const OZ_CLASS_HASH : Felt =
21
- felt ! ( "0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6 " ) ;
21
+ felt ! ( "0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564 " ) ; // v1.0.0
22
22
pub const ARGENT_CLASS_HASH : Felt =
23
23
felt ! ( "0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f" ) ; // v0.4.0
24
24
Original file line number Diff line number Diff line change 131
131
"type" : " braavos"
132
132
},
133
133
"oz" : {
134
- "address" : " 0x1eae312dad53cf9d1c435891648cc48b14c901bec0e1bc87c332fcdca1a762f " ,
135
- "class_hash" : " 0xe2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6 " ,
134
+ "address" : " 0x1173129651d1853fe9a15f8e8ef29e4806c5a9469b0a6b9622ee90f392bc26d " ,
135
+ "class_hash" : " 0x5b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564 " ,
136
136
"deployed" : false ,
137
137
"legacy" : false ,
138
- "private_key" : " 0x6a3fff2b1333a4ed3dd6f9afc957c4ec9ac73af69590a6312ffeddb6caf0f20 " ,
139
- "public_key" : " 0x6aa82f4db6c740c27751885f47f2b73eed6c70d12d059965a563a04678c8405 " ,
140
- "salt" : " 0xc3990d6bbb890e77 " ,
138
+ "private_key" : " 0x4a31141908e08ec6d82d324303d97405ad2196def8a13ea320e2117166809d2 " ,
139
+ "public_key" : " 0x36a64f9d432cce317c3e50bc467d48f2797463babe8f29c83c2e6125ddd1947 " ,
140
+ "salt" : " 0x25e7144fce03d200 " ,
141
141
"type" : " open_zeppelin"
142
142
}
143
143
}
Original file line number Diff line number Diff line change @@ -243,22 +243,20 @@ pub async fn invoke_contract(
243
243
244
244
pub async fn mint_token ( recipient : & str , amount : u128 ) {
245
245
let client = reqwest:: Client :: new ( ) ;
246
- for unit in [ "FRI" , "WEI" ] {
247
- let json = json ! (
248
- {
249
- "address" : recipient,
250
- "amount" : amount,
251
- "unit" : unit,
252
- }
253
- ) ;
254
- client
255
- . post ( "http://127.0.0.1:5055/mint" )
256
- . header ( "Content-Type" , "application/json" )
257
- . body ( json. to_string ( ) )
258
- . send ( )
259
- . await
260
- . expect ( "Error occurred while minting tokens" ) ;
261
- }
246
+ let json = json ! (
247
+ {
248
+ "address" : recipient,
249
+ "amount" : amount,
250
+ "unit" : "FRI" ,
251
+ }
252
+ ) ;
253
+ client
254
+ . post ( "http://127.0.0.1:5055/mint" )
255
+ . header ( "Content-Type" , "application/json" )
256
+ . body ( json. to_string ( ) )
257
+ . send ( )
258
+ . await
259
+ . expect ( "Error occurred while minting tokens" ) ;
262
260
}
263
261
264
262
#[ must_use]
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Versions of the account contracts:
38
38
39
39
| Account Contract | Version | Class Hash |
40
40
| ------------------| ---------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
41
- | ` oz ` | v0.14 .0 | [ 0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6 ] ( https://starkscan.co/class/0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6 ) |
41
+ | ` oz ` | v1.0 .0 | [ 0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564 ] ( https://starkscan.co/class/0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564 ) |
42
42
| ` argent ` | v0.4.0 | [ 0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f] ( https://starkscan.co/class/0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f ) |
43
43
<!-- TODO(#3118): Uncomment once braavos integration is restored -->
44
44
<!-- | `braavos` | v1.0.0 | [0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253](https://starkscan.co/class/0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253) | -->
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ $ sncast account delete \
169
169
# ### Custom Account Contract
170
170
171
171
By default, ` sncast` creates/deploys an account
172
- using [OpenZeppelin' s account contract class hash](https://starkscan.co/class/0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6 ).
172
+ using [OpenZeppelin' s account contract class hash](https://starkscan.co/class/0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564 ).
173
173
It is possible to create an account using custom openzeppelin, argent or braavos contract declared to starknet. This can
174
174
be achieved
175
175
with `--class-hash` flag:
@@ -179,7 +179,7 @@ $ sncast \
179
179
account create \
180
180
--name new_account_2 \
181
181
--network sepolia \
182
- --class-hash 0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6
182
+ --class-hash 0x05b4b537eaa2399e3aa99c4e2e0208ebd6c71bc1467938cd52c798c601e43564
183
183
--type oz
184
184
```
185
185
You can’t perform that action at this time.
0 commit comments