diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index fbbd3c56d..778b527ee 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -24,7 +24,7 @@ jobs: # TODO - periodically check if conditional services are supported; https://github.com/actions/runner/issues/822 services: devnet: - image: ${{ (inputs.use-devnet) && 'shardlabs/starknet-devnet-rs:0.2.2' || '' }} + image: ${{ (inputs.use-devnet) && 'shardlabs/starknet-devnet-rs:0.2.4' || '' }} ports: - 5050:5050 diff --git a/CHANGELOG.md b/CHANGELOG.md index 87eac0258..dc580a86e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [6.21.1](https://github.com/starknet-io/starknet.js/compare/v6.21.0...v6.21.1) (2025-01-23) + +### Bug Fixes + +- pass signerDetails to fix estimateFeeBulk ([#1299](https://github.com/starknet-io/starknet.js/issues/1299)) ([f09f20d](https://github.com/starknet-io/starknet.js/commit/f09f20da47396456350d26610dabd2e2641a5a98)) + # [6.21.0](https://github.com/starknet-io/starknet.js/compare/v6.20.3...v6.21.0) (2025-01-08) ### Bug Fixes diff --git a/__tests__/rpcProvider.test.ts b/__tests__/rpcProvider.test.ts index 954de9e8c..c33fb3eb0 100644 --- a/__tests__/rpcProvider.test.ts +++ b/__tests__/rpcProvider.test.ts @@ -32,6 +32,7 @@ import { waitNextBlock, } from './config/fixtures'; import { initializeMatcher } from './config/schema'; +import { isBoolean } from '../src/utils/typed'; describeIfRpc('RPCProvider', () => { const rpcProvider = getTestProvider(false); @@ -307,16 +308,17 @@ describeIfRpc('RPCProvider', () => { expect(Array.isArray(transactions)).toBe(true); }); + test('getSyncingStats', async () => { + const syncingStats = await rpcProvider.getSyncingStats(); + expect(syncingStats).toMatchSchemaRef('GetSyncingStatsResponse'); + if (isBoolean(syncingStats)) expect(syncingStats).toBe(false); + }); + xtest('traceBlockTransactions', async () => { await rpcProvider.getBlockTransactionsTraces(latestBlock.block_hash); }); describeIfDevnet('devnet only', () => { - test('getSyncingStats', async () => { - const syncingStats = await rpcProvider.getSyncingStats(); - expect(syncingStats).toBe(false); - }); - test('getEvents ', async () => { const randomWallet = stark.randomAddress(); const classHash = '0x011ab8626b891bcb29f7cc36907af7670d6fb8a0528c7944330729d8f01e9ea3'; @@ -440,13 +442,6 @@ describeIfRpc('RPCProvider', () => { }); }); }); - - describeIfNotDevnet('global rpc only', () => { - test('getSyncingStats', async () => { - const syncingStats = await rpcProvider.getSyncingStats(); - expect(syncingStats).toMatchSchemaRef('GetSyncingStatsResponse'); - }); - }); }); describeIfTestnet('RPCProvider', () => { diff --git a/__tests__/schemas/rpc.json b/__tests__/schemas/rpc.json index b449713c4..a5eb03ed0 100644 --- a/__tests__/schemas/rpc.json +++ b/__tests__/schemas/rpc.json @@ -2,7 +2,14 @@ "$id": "rpcSchemas", "definitions": { "GetSyncingStatsResponse": { - "$ref": "starknet_api_openrpc#/components/schemas/SYNC_STATUS" + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "starknet_api_openrpc#/components/schemas/SYNC_STATUS" + } + ] }, "StarknetEmittedEvent": { "$ref": "starknet_api_openrpc#/components/schemas/EMITTED_EVENT" diff --git a/package-lock.json b/package-lock.json index bdf7b1a04..d16a6e036 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "starknet", - "version": "6.21.0", + "version": "6.21.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "starknet", - "version": "6.21.0", + "version": "6.21.1", "license": "MIT", "dependencies": { "@noble/curves": "1.7.0", diff --git a/package.json b/package.json index b89faaa5d..e965c541c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknet", - "version": "6.21.0", + "version": "6.21.1", "description": "JavaScript library for Starknet", "license": "MIT", "repository": { diff --git a/src/account/default.ts b/src/account/default.ts index 348022efd..3152346f5 100644 --- a/src/account/default.ts +++ b/src/account/default.ts @@ -990,6 +990,7 @@ export class Account extends Provider implements AccountInterface { return { ...common, ...payload, + ...signerDetails, }; } if (transaction.type === TransactionType.DEPLOY) { @@ -1003,6 +1004,7 @@ export class Account extends Provider implements AccountInterface { return { ...common, ...payload, + ...signerDetails, type: TransactionType.INVOKE, }; } @@ -1016,6 +1018,7 @@ export class Account extends Provider implements AccountInterface { return { ...common, ...payload, + ...signerDetails, }; } if (transaction.type === TransactionType.DEPLOY_ACCOUNT) { @@ -1028,6 +1031,7 @@ export class Account extends Provider implements AccountInterface { return { ...common, ...payload, + ...signerDetails, }; } throw Error(`accountInvocationsFactory: unsupported transaction type: ${transaction}`);