Skip to content

Commit

Permalink
Merge branch 'develop' into ETHsignerContract
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeR26 authored Mar 18, 2024
2 parents 648e4d6 + 0315d3d commit 656ce42
Show file tree
Hide file tree
Showing 30 changed files with 1,207 additions and 168 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# [6.5.0](https://github.com/starknet-io/starknet.js/compare/v6.4.2...v6.5.0) (2024-03-14)

### Bug Fixes

- adjust max amount bound calculation for RPC v0.7.0 ([dd34cdb](https://github.com/starknet-io/starknet.js/commit/dd34cdb8b9817a55a16a97d960b1544d75c0059a))

### Features

- make fee margins configurable ([cedd984](https://github.com/starknet-io/starknet.js/commit/cedd984e1106db5b73d17630e282eb956d344a97))

## [6.4.2](https://github.com/starknet-io/starknet.js/compare/v6.4.1...v6.4.2) (2024-03-14)

### Bug Fixes

- update starknetid sepolia contract addresses ([#1016](https://github.com/starknet-io/starknet.js/issues/1016)) ([b50a3bd](https://github.com/starknet-io/starknet.js/commit/b50a3bdada4345a9d601734762bc7a600766ec25))

## [6.4.1](https://github.com/starknet-io/starknet.js/compare/v6.4.0...v6.4.1) (2024-03-14)

### Bug Fixes

- byteArray encoding for less than 31 chars ([#1011](https://github.com/starknet-io/starknet.js/issues/1011)) ([653acc4](https://github.com/starknet-io/starknet.js/commit/653acc44c841540214dd6f6b8956b354d7c27644))

# [6.4.0](https://github.com/starknet-io/starknet.js/compare/v6.3.0...v6.4.0) (2024-03-12)

### Bug Fixes

- expand encoding type for preset types ([b992446](https://github.com/starknet-io/starknet.js/commit/b9924465a1f01ac4273638f3fa258b36192d2101))

### Features

- enable cairo 2.6.0 contract declaration ([0104c59](https://github.com/starknet-io/starknet.js/commit/0104c59739a9dbe70091e14372a73ca84550f639))
- skip signatures when skipValidate is true ([6f784ea](https://github.com/starknet-io/starknet.js/commit/6f784ea4e4edd298f1950dac956fd1c81b953497))

# [6.3.0](https://github.com/starknet-io/starknet.js/compare/v6.2.1...v6.3.0) (2024-03-11)

### Features
Expand Down
27 changes: 27 additions & 0 deletions __mocks__/cairo/cairo260/hello260.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Cairo 2.6.0
#[starknet::interface]
trait IHelloStarknet<TContractState> {
fn set_name(ref self: TContractState, name1: felt252);
fn get_name(self: @TContractState) -> felt252;
}


#[starknet::contract]
mod HelloStarknet {
#[storage]
struct Storage {
name: felt252,
}

#[abi(embed_v0)]
impl HelloStarknetImpl of super::IHelloStarknet<ContractState> {
fn set_name(ref self: ContractState, name1: felt252) {
assert(name1 != '', 'Enter a name');
self.name.write(name1);
}

fn get_name(self: @ContractState) -> felt252 {
self.name.read()
}
}
}
Loading

0 comments on commit 656ce42

Please sign in to comment.