diff --git a/CHANGELOG.md b/CHANGELOG.md index a591a5a..455c3b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.6 + +### Fixed + +- **`PASEO_ASSET_HUB.genesisHash` refreshed after the Paseo Asset Hub chain reset** ([#153](https://github.com/paritytech/product-sdk/pull/153)). The `paseo-asset-hub-next` chain was reset, changing its genesis from `0x173cea…` to `0xbf0488dbe9daa1de1c08c5f743e26fdc2a4ecd74cf87dd1b4b1eeb99ae4ef19f`. The stale literal caused the host's chain-feature handshake to reject product-sdk descriptors regenerated against the new chain, surfacing as the product app stuck `disconnected` in E2E (`expect byod-status: "connected"`, received `"disconnected"`). Verified the new value against the live chain via `chain_getBlockHash(0)`. + ## 0.8.5 ### Fixed diff --git a/forum-post.md b/forum-post.md index 7a61cfb..c4bdb7a 100644 --- a/forum-post.md +++ b/forum-post.md @@ -440,6 +440,21 @@ What the handler does now: --- +# host-api-test-sdk 0.8.6 + +One fix. Drop-in upgrade from `0.8.5`. + +## Fixed + +- **`PASEO_ASSET_HUB.genesisHash` refreshed after the Paseo Asset Hub chain reset.** The `paseo-asset-hub-next` chain was reset, so its genesis changed from `0x173cea…` to `0xbf0488dbe9daa1de1c08c5f743e26fdc2a4ecd74cf87dd1b4b1eeb99ae4ef19f`. The built-in `PASEO_ASSET_HUB` config carried the old hash, so the host's chain-feature handshake rejected any product descriptors regenerated against the new chain — the product app would sit `disconnected` in E2E even though the RPC was reachable. The new value is verified against the live chain via `chain_getBlockHash(0)`. + +## What you need to do + +- Upgrade to `0.8.6`. If you only use the built-in `PASEO_ASSET_HUB` config, no code changes are needed — the correct genesis comes with the upgrade. +- If you hardcoded the old genesis (`0x173cea…`) in your own `ChainConfig` or test assertions, update it to `0xbf0488…`. + +--- + # host-api-test-sdk 0.8.5 One fix. Drop-in upgrade from `0.8.4`. Thanks to [@BigTava](https://github.com/BigTava) for spotting this and contributing the initial fix. diff --git a/package.json b/package.json index 8415129..8b56c06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@parity/host-api-test-sdk", - "version": "0.8.5", + "version": "0.8.6", "description": "Lightweight test host for Spektr product E2E testing — embeds dapps with auto-signing dev accounts, no Docker needed", "license": "MIT", "repository": { diff --git a/src/chains.ts b/src/chains.ts index 0c9b0f1..80451f0 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -3,7 +3,7 @@ import type { ChainConfig, HexString } from './types.js'; export const PASEO_ASSET_HUB: ChainConfig = { id: 'paseo-asset-hub', name: 'Paseo Asset Hub', - genesisHash: '0x173cea9df45656cf612c8b8ece56e04e9a693c69cfaac47d3628dae735067af8' as HexString, + genesisHash: '0xbf0488dbe9daa1de1c08c5f743e26fdc2a4ecd74cf87dd1b4b1eeb99ae4ef19f' as HexString, rpcUrl: 'wss://paseo-asset-hub-next-rpc.polkadot.io', tokenSymbol: 'PAS', tokenDecimals: 10, diff --git a/test/integration.spec.ts b/test/integration.spec.ts index 3eb79bc..699f7fc 100644 --- a/test/integration.spec.ts +++ b/test/integration.spec.ts @@ -1250,7 +1250,7 @@ test.describe('Feature check', () => { // Default chain is PASEO_ASSET_HUB const result = await product.evaluate(() => window.__TEST_PRODUCT__.featureSupported('Chain', - '0x173cea9df45656cf612c8b8ece56e04e9a693c69cfaac47d3628dae735067af8')); + '0xbf0488dbe9daa1de1c08c5f743e26fdc2a4ecd74cf87dd1b4b1eeb99ae4ef19f')); expect(result.ok).toBe(true); expect(result.supported).toBe(true); } finally {