fix: correct Ed25519/Sr25519 key scheme detection for Asset Hub

- Fix RuntimeResolver prefix matching order: check asset-hub-pezkuwichain
  BEFORE asset-hub-pezkuwi to avoid false matches
- Fix zombienet SDK is_asset_hub_pezkuwi detection to exclude pezkuwichain
- Add zombienet-local-21.toml and zombienet-mainnet-21.toml configs
- Update .gitignore for sensitive mainnet files
This commit is contained in:
2026-01-24 10:43:10 +03:00
parent e438a9dd44
commit 98e0d7937e
6 changed files with 411 additions and 11 deletions
@@ -247,16 +247,19 @@ impl LegacyRuntime {
fn from_id(id: &str) -> LegacyRuntime {
let id = id.replace('_', "-");
if id.starts_with("asset-hub-pezkuwi") | id.starts_with("statemint") {
LegacyRuntime::AssetHubPezkuwi
} else if id.starts_with("asset-hub-dicle")
// NOTE: Check longer prefixes FIRST to avoid false matches.
// "asset-hub-pezkuwichain" starts with "asset-hub-pezkuwi", so we must check
// pezkuwichain before pezkuwi.
if id.starts_with("asset-hub-pezkuwichain")
| id.starts_with("asset-hub-dicle")
| id.starts_with("statemine")
| id.starts_with("asset-hub-pezkuwichain")
| id.starts_with("rockmine")
| id.starts_with("asset-hub-zagros")
| id.starts_with("westmint")
{
LegacyRuntime::AssetHub
} else if id.starts_with("asset-hub-pezkuwi") | id.starts_with("statemint") {
LegacyRuntime::AssetHubPezkuwi
} else if id.starts_with("penpal") {
LegacyRuntime::Penpal
} else if id.starts_with("collectives-pezkuwi") || id.starts_with("collectives-zagros") {