Skip to content

Commit

Permalink
Merge branch 'develop' into fix/0.11.0/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Apr 25, 2023
2 parents e5adca4 + bc5b729 commit dfbbd3a
Show file tree
Hide file tree
Showing 15 changed files with 23,348 additions and 9,890 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# [5.7.0](https://github.com/0xs34n/starknet.js/compare/v5.6.1...v5.7.0) (2023-04-25)

### Features

- expose more starknetId addresses ([863736e](https://github.com/0xs34n/starknet.js/commit/863736e0d1daf30b9b6c1bab7c5213cda29f3d61))

## [5.6.1](https://github.com/0xs34n/starknet.js/compare/v5.6.0...v5.6.1) (2023-04-21)

### Bug Fixes

- uint256 struct ([4ce2d02](https://github.com/0xs34n/starknet.js/commit/4ce2d0255594831e7ad816368e3cfa14449feaa5))
- uint256, view bool, compiled in contract.call ([346cd51](https://github.com/0xs34n/starknet.js/commit/346cd5197d377966d148a8b218e6ee03af7170f2))

# [5.6.0](https://github.com/0xs34n/starknet.js/compare/v5.5.0...v5.6.0) (2023-04-19)

### Bug Fixes
Expand Down
26 changes: 26 additions & 0 deletions __mocks__/cairo/helloSierra/hello.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,32 @@ mod HelloStarknet {
balance_u8::read()
}

#[view]
fn test_u16(p1: u16) -> u16 {
p1 + 1_u16
}

#[view]
fn test_u32(p1: u32) -> u32 {
p1 + 1_u32
}

#[view]
fn test_u64(p1: u64) -> u64 {
p1 + 1_u64
}

#[view]
fn test_u128(p1: u128) -> u128 {
p1 + 1_u128
}

#[view]
fn test_u256(p1: u256) -> u256 {
let to_add = u256 { low: 1_u128, high: 0_u128 };
p1 + to_add
}

// echo Array
#[view]
fn echo_array(data: Array<u8>) -> Array<u8> {
Expand Down
Loading

0 comments on commit dfbbd3a

Please sign in to comment.