Skip to content

Commit

Permalink
Merge branch 'beta' into fix/negative-uint-param
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Jan 26, 2024
2 parents e1ead14 + a673265 commit f43de6e
Show file tree
Hide file tree
Showing 43 changed files with 13,364 additions and 2,229 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# [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)

### Bug Fixes

- solve wrong response for account.verifyMessage ([05f4095](https://github.com/starknet-io/starknet.js/commit/05f4095599f89dd508fac9316e1c24fc0dceaa8a))

### Features

- abiwan v2 intergation ([87d15d3](https://github.com/starknet-io/starknet.js/commit/87d15d3d4ada1138ed5b66620a4de56189195f4c))
- add string types of cairo v2.4.0 ([a8a73c1](https://github.com/starknet-io/starknet.js/commit/a8a73c1f5b0bc72bc42460f3735eeec6f95edcbe))
- make Abi and CONTRACT_ABI types compatible with abiwan ([9007816](https://github.com/starknet-io/starknet.js/commit/9007816689528a79bd8bb4267e0098be2e6d71d2))
- replace in verifyMessage : response by Error ([1abf91f](https://github.com/starknet-io/starknet.js/commit/1abf91f170c46d4f4cf5f493dc3d6717c6d3c1e7))
- sepolia ([26d7044](https://github.com/starknet-io/starknet.js/commit/26d70446edd7c098b7f257d9242cc9d9d220b11e))

# [5.25.0](https://github.com/starknet-io/starknet.js/compare/v5.24.5...v5.25.0) (2023-12-18)

### Features

- sepolia ([26d7044](https://github.com/starknet-io/starknet.js/commit/26d70446edd7c098b7f257d9242cc9d9d220b11e))

# [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)

### Features

- add provider.decodeParameters ([be6eec9](https://github.com/starknet-io/starknet.js/commit/be6eec94c8ae5d92df631502c9a1d61663d80101))
- ethereum signer ([8473adb](https://github.com/starknet-io/starknet.js/commit/8473adbcfa5ef642297b8a7f448a0d789703037f))
- ethereum-signer ([f37bfb2](https://github.com/starknet-io/starknet.js/commit/f37bfb2788b7c6befc10efca8b102ee2a975ee55))

# [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)

### Bug Fixes
Expand Down
39 changes: 39 additions & 0 deletions __mocks__/cairo/cairo240/string.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//Cairo 2.5.0

#[starknet::interface]
trait ITestReject<TContractState> {
fn proceed_bytes31(self: @TContractState, str: bytes31) -> bytes31;
fn get_string(self: @TContractState) -> ByteArray;
fn proceed_string(self: @TContractState, mess: ByteArray) -> ByteArray;
}

#[starknet::contract]
mod MyTestReject {
use core::option::OptionTrait;
use core::traits::TryInto;
use core::bytes_31::Bytes31Trait;
use core::byte_array::ByteArrayTrait;
#[storage]
struct Storage {}
// To be tested with special characters (!@#$%^&*_+{}|:";./,\[];'<>?~`)
#[abi(embed_v0)]
impl TestReject of super::ITestReject<ContractState> {
fn proceed_bytes31(self: @ContractState, str: bytes31) -> bytes31 {
let mut mess: ByteArray = "Cairo has become the most popular language for developers!@#$%^&*_+|:'<>?~`";
mess.append_byte(55_u8);
str
}

fn get_string(self: @ContractState) -> ByteArray {
let mess: ByteArray = "Cairo has become the most popular language for developers" + " + charizards !@#$%^&*_+|:'<>?~`";
mess
}

fn proceed_string(self: @ContractState, mess: ByteArray) -> ByteArray {
let mut res = mess;
let add: ByteArray = " Zorg is back";
res.append(@add);
res
}
}
}
Loading

0 comments on commit f43de6e

Please sign in to comment.