Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 15 additions & 0 deletions forum-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading