File tree Expand file tree Collapse file tree 4 files changed +2005
-1916
lines changed Expand file tree Collapse file tree 4 files changed +2005
-1916
lines changed Original file line number Diff line number Diff line change 1- // Cairo 2.4 .0
1+ // Cairo 2.5 .0
22
33#[starknet:: interface]
44trait ITestReject <TContractState > {
@@ -14,21 +14,18 @@ mod MyTestReject {
1414 use core :: bytes_31 :: Bytes31Trait ;
1515 use core :: byte_array :: ByteArrayTrait ;
1616 #[storage]
17- struct Storage {
18- counter : u8
19- }
20-
21- #[external(v0)]
17+ struct Storage {}
18+ // To be tested with special characters (!@#$%^&*_+{}|:";./,\[];'<>?~`)
19+ #[abi(embed_v0)]
2220 impl TestReject of super :: ITestReject <ContractState > {
2321 fn proceed_bytes31 (self : @ ContractState , str : bytes31 ) -> bytes31 {
24- let mut mess : ByteArray = " azertzertrty dfghfghj dfgh dfghazert sdfgsdf " ;
22+ let mut mess : ByteArray = " Cairo has become the most popular language for developers!@#$%^&*_+|:'<>?~` " ;
2523 mess . append_byte (55_u8 );
26- let mot : felt252 = ' Zorg' ;
2724 str
2825 }
2926
3027 fn get_string (self : @ ContractState ) -> ByteArray {
31- let mut mess : ByteArray = " azertzertrty dfghfghj dfgh dfghazert sdfgsdf " ;
28+ let mess : ByteArray = " Cairo has become the most popular language for developers " + " + charizards !@#$%^&*_+|:'<>?~` " ;
3229 mess
3330 }
3431
You can’t perform that action at this time.
0 commit comments