Skip to content

Commit f43de6e

Browse files
committed
Merge branch 'beta' into fix/negative-uint-param
2 parents e1ead14 + a673265 commit f43de6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+13364
-2229
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# [6.0.0-beta.13](https://github.com/starknet-io/starknet.js/compare/v6.0.0-beta.12...v6.0.0-beta.13) (2024-01-23)
2+
3+
### Bug Fixes
4+
5+
- solve wrong response for account.verifyMessage ([05f4095](https://github.com/starknet-io/starknet.js/commit/05f4095599f89dd508fac9316e1c24fc0dceaa8a))
6+
7+
### Features
8+
9+
- abiwan v2 intergation ([87d15d3](https://github.com/starknet-io/starknet.js/commit/87d15d3d4ada1138ed5b66620a4de56189195f4c))
10+
- add string types of cairo v2.4.0 ([a8a73c1](https://github.com/starknet-io/starknet.js/commit/a8a73c1f5b0bc72bc42460f3735eeec6f95edcbe))
11+
- make Abi and CONTRACT_ABI types compatible with abiwan ([9007816](https://github.com/starknet-io/starknet.js/commit/9007816689528a79bd8bb4267e0098be2e6d71d2))
12+
- replace in verifyMessage : response by Error ([1abf91f](https://github.com/starknet-io/starknet.js/commit/1abf91f170c46d4f4cf5f493dc3d6717c6d3c1e7))
13+
- sepolia ([26d7044](https://github.com/starknet-io/starknet.js/commit/26d70446edd7c098b7f257d9242cc9d9d220b11e))
14+
15+
# [5.25.0](https://github.com/starknet-io/starknet.js/compare/v5.24.5...v5.25.0) (2023-12-18)
16+
17+
### Features
18+
19+
- sepolia ([26d7044](https://github.com/starknet-io/starknet.js/commit/26d70446edd7c098b7f257d9242cc9d9d220b11e))
20+
21+
# [6.0.0-beta.12](https://github.com/starknet-io/starknet.js/compare/v6.0.0-beta.11...v6.0.0-beta.12) (2024-01-23)
22+
23+
### Features
24+
25+
- add provider.decodeParameters ([be6eec9](https://github.com/starknet-io/starknet.js/commit/be6eec94c8ae5d92df631502c9a1d61663d80101))
26+
- ethereum signer ([8473adb](https://github.com/starknet-io/starknet.js/commit/8473adbcfa5ef642297b8a7f448a0d789703037f))
27+
- ethereum-signer ([f37bfb2](https://github.com/starknet-io/starknet.js/commit/f37bfb2788b7c6befc10efca8b102ee2a975ee55))
28+
129
# [6.0.0-beta.11](https://github.com/starknet-io/starknet.js/compare/v6.0.0-beta.10...v6.0.0-beta.11) (2024-01-04)
230

331
### Bug Fixes
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//Cairo 2.5.0
2+
3+
#[starknet::interface]
4+
trait ITestReject<TContractState> {
5+
fn proceed_bytes31(self: @TContractState, str: bytes31) -> bytes31;
6+
fn get_string(self: @TContractState) -> ByteArray;
7+
fn proceed_string(self: @TContractState, mess: ByteArray) -> ByteArray;
8+
}
9+
10+
#[starknet::contract]
11+
mod MyTestReject {
12+
use core::option::OptionTrait;
13+
use core::traits::TryInto;
14+
use core::bytes_31::Bytes31Trait;
15+
use core::byte_array::ByteArrayTrait;
16+
#[storage]
17+
struct Storage {}
18+
// To be tested with special characters (!@#$%^&*_+{}|:";./,\[];'<>?~`)
19+
#[abi(embed_v0)]
20+
impl TestReject of super::ITestReject<ContractState> {
21+
fn proceed_bytes31(self: @ContractState, str: bytes31) -> bytes31 {
22+
let mut mess: ByteArray = "Cairo has become the most popular language for developers!@#$%^&*_+|:'<>?~`";
23+
mess.append_byte(55_u8);
24+
str
25+
}
26+
27+
fn get_string(self: @ContractState) -> ByteArray {
28+
let mess: ByteArray = "Cairo has become the most popular language for developers" + " + charizards !@#$%^&*_+|:'<>?~`";
29+
mess
30+
}
31+
32+
fn proceed_string(self: @ContractState, mess: ByteArray) -> ByteArray {
33+
let mut res = mess;
34+
let add: ByteArray = " Zorg is back";
35+
res.append(@add);
36+
res
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)