Skip to content

Commit d72b1be

Browse files
authored
Merge pull request #848 from starknet-io/develop
Release
2 parents 4661483 + cadc8c0 commit d72b1be

File tree

10 files changed

+17
-11
lines changed

10 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [5.24.3](https://github.com/starknet-io/starknet.js/compare/v5.24.2...v5.24.3) (2023-11-20)
2+
3+
### Bug Fixes
4+
5+
- correct syncing type ([41f9d8a](https://github.com/starknet-io/starknet.js/commit/41f9d8a0d1b69c569e7a3aa55cec09f105c32356))
6+
17
## [5.24.2](https://github.com/starknet-io/starknet.js/compare/v5.24.1...v5.24.2) (2023-11-17)
28

39
### Bug Fixes

__mocks__/cairo/helloCairo2/hellocairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ trait IHelloStarknet<TContractState> {
110110
fn echo_array(self: @TContractState, data: Array<u8>) -> Array<u8>;
111111
fn echo_array_u256(self: @TContractState, data: Array<u256>) -> Array<u256>;
112112
fn echo_array_bool(self: @TContractState, data: Array<bool>) -> Array<bool>;
113-
// unamed Tuple
113+
// unnamed Tuple
114114
fn echo_un_tuple(self: @TContractState, a: (felt252, u16)) -> (felt252, u16);
115115
// echo Struct
116116
fn echo_struct(self: @TContractState, tt: Foo) -> Foo;
@@ -362,7 +362,7 @@ mod HelloStarknet {
362362
data
363363
}
364364

365-
// unamed Tuple
365+
// unnamed Tuple
366366
fn echo_un_tuple(self: @ContractState, a: (felt252, u16)) -> (felt252, u16) {
367367
a
368368
}

__mocks__/cairo/helloSierra/hello.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ mod HelloStarknet {
302302
data
303303
}
304304

305-
// unamed Tuple
305+
// unnamed Tuple
306306
#[view]
307307
fn echo_un_tuple(a:(felt252, u16)) -> (felt252, u16) {
308308
a

__tests__/cairo1.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describeIfDevnet('Cairo 1 Devnet', () => {
243243
const status = await cairo1Contract.echo_array([123, 55, 77, 255]);
244244
expect(status).toEqual([123n, 55n, 77n, 255n]);
245245

246-
// uint256 defiend as number
246+
// uint256 defined as number
247247
const status1 = await cairo1Contract.echo_array_u256([123, 55, 77, 255]);
248248
expect(status1).toEqual([123n, 55n, 77n, 255n]);
249249

__tests__/cairo1v2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ describe('Cairo 1', () => {
293293
const status = await cairo1Contract.echo_array([123, 55, 77, 255]);
294294
expect(status).toEqual([123n, 55n, 77n, 255n]);
295295

296-
// uint256 defiend as number
296+
// uint256 defined as number
297297
const status1 = await cairo1Contract.echo_array_u256([123, 55, 77, 255]);
298298
expect(status1).toEqual([123n, 55n, 77n, 255n]);
299299

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "starknet",
3-
"version": "5.24.2",
3+
"version": "5.24.3",
44
"description": "JavaScript library for Starknet",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/provider/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class CustomError extends Error {
2929
// because typescript __extends implementation can't
3030
// see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
3131
fixProto(this, new.target.prototype);
32-
// try to remove contructor from stack trace
32+
// try to remove constructor from stack trace
3333
fixStack(this);
3434
}
3535
}

src/types/api/rpcspec/nonspec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type StateUpdate = STATE_UPDATE | PENDING_STATE_UPDATE;
5858
// response starknet_traceBlockTransactions
5959
export type BlockTransactionsTraces = { transaction_hash: FELT; trace_root: TRANSACTION_TRACE }[];
6060
// response starknet_syncing
61-
export type Syncing = boolean | SYNC_STATUS;
61+
export type Syncing = false | SYNC_STATUS;
6262
// response starknet_getEvents
6363
export type Events = EVENTS_CHUNK;
6464
// response starknet_addInvokeTransaction

src/utils/stark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function signatureToHexArray(sig?: Signature): ArraySignatureType {
8686
* Convert estimated fee to max fee with overhead
8787
*/
8888
export function estimatedFeeToMaxFee(estimatedFee: BigNumberish, overhead: number = 0.5): bigint {
89-
// BN can only handle Integers, so we need to do all calulations with integers
89+
// BN can only handle Integers, so we need to do all calculations with integers
9090
const overHeadPercent = Math.round((1 + overhead) * 100);
9191
return (toBigInt(estimatedFee) * toBigInt(overHeadPercent)) / 100n;
9292
}

0 commit comments

Comments
 (0)