Skip to content

Commit

Permalink
Merge branch 'develop' into next-version
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Mar 22, 2024
2 parents b4ea22a + 6235080 commit c98fae4
Show file tree
Hide file tree
Showing 19 changed files with 342 additions and 183 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.env
.eslintcache
.vscode
.idea
coverage
dist
node_modules
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# [6.6.0](https://github.com/starknet-io/starknet.js/compare/v6.5.0...v6.6.0) (2024-03-19)

### Bug Fixes

- second option bump semantic release to 0.5 ([c90f9b2](https://github.com/starknet-io/starknet.js/commit/c90f9b285afb455d2404bff67137d5e6ae44cd5f))
- test ci fix ([3a6c924](https://github.com/starknet-io/starknet.js/commit/3a6c9247717cb979842d9b37905ae423267959a5))
- update to latest get-starknet dev ([017702f](https://github.com/starknet-io/starknet.js/commit/017702fd8c579ab62c98bc78fd6e8dd3022ef9ec))
- wallet circular dependency fix ([621ae2d](https://github.com/starknet-io/starknet.js/commit/621ae2d4a015f3bb3b2e63ddbaeb5fa843509a88))

### Features

- get-starknet-core repacked for mjs, and initial implementation ([ab7fa19](https://github.com/starknet-io/starknet.js/commit/ab7fa19f44ad1fc27292313589247b74943fe3d0))
- the WalletAccount handle changed channel ([73603e1](https://github.com/starknet-io/starknet.js/commit/73603e175bcc7925aa896be81fb666ffb225890d))
- wallet deploy contract and patches ([dbf53b6](https://github.com/starknet-io/starknet.js/commit/dbf53b6e57948e433186cae6209998dece04fe4a))
- walletAccount extract methods and update new ones ([0dfb5db](https://github.com/starknet-io/starknet.js/commit/0dfb5db1032dd7c946ee514647e8abb3eda87996))

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

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions __tests__/cairo1v2_typed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
types,
} from '../src';
import { hexToDecimalString } from '../src/utils/num';
import { encodeShortString } from '../src/utils/shortString';
import { encodeShortString, isString } from '../src/utils/shortString';
import {
TEST_TX_VERSION,
compiledC1Account,
Expand Down Expand Up @@ -337,7 +337,7 @@ describe('Cairo 1', () => {
const status = await cairo1Contract.echo_struct({
val: 'simple',
});
if (typeof status.val === 'string') {
if (isString(status.val)) {
expect(shortString.decodeShortString(status.val)).toBe('simple');
}
});
Expand Down
3 changes: 2 additions & 1 deletion __tests__/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import libSchemas from '../schemas/lib.json';
import providerSchemas from '../schemas/provider.json';
import rpcSchemas from '../schemas/rpc.json';
import sequencerSchemas from '../schemas/sequencer.json';
import { isBigInt } from '../../src/utils/num';

const matcherSchemas = [accountSchemas, libSchemas, providerSchemas, rpcSchemas, sequencerSchemas];
const schemas = [...matcherSchemas, componentSchemas];
Expand All @@ -16,7 +17,7 @@ const jestJsonMatchers = matchersWithOptions({ schemas }, (ajv: any) => {
keyword: 'isBigInt',
type: 'object',
validate: (_schema: any, data: any) => {
return typeof data === 'bigint' && data < 2n ** 64n && data >= 0n;
return isBigInt(data) && data < 2n ** 64n && data >= 0n;
},
errors: true,
});
Expand Down
Loading

0 comments on commit c98fae4

Please sign in to comment.