From 583732ee07fcad1491fe8fa953c8f0e87f1f0bbb Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> Date: Tue, 16 Sep 2025 23:27:38 +0200 Subject: [PATCH] fix: Update testing ChainForkVersions (#167) --- .gitignore | 3 ++- operator/runtime/mainnet/src/configs/mod.rs | 12 ++++++------ operator/runtime/stagenet/src/configs/mod.rs | 12 ++++++------ operator/runtime/testnet/src/configs/mod.rs | 12 ++++++------ test/.papi/metadata/datahaven.scale | Bin 602087 -> 602087 bytes 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 2d69ed32..31c9ad7d 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ tmp/* **/.DS_Store .worktrees/ -.claude/ \ No newline at end of file +.claude/ +Agents.md diff --git a/operator/runtime/mainnet/src/configs/mod.rs b/operator/runtime/mainnet/src/configs/mod.rs index a189e429..ec350c88 100644 --- a/operator/runtime/mainnet/src/configs/mod.rs +++ b/operator/runtime/mainnet/src/configs/mod.rs @@ -1012,27 +1012,27 @@ impl snowbridge_pallet_system_v2::Config for Runtime { parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork { - version: [0, 0, 0, 0], // 0x00000000 + version: hex_literal::hex!("10000038"), epoch: 0, }, altair: Fork { - version: [1, 0, 0, 0], // 0x01000000 + version: hex_literal::hex!("20000038"), epoch: 0, }, bellatrix: Fork { - version: [2, 0, 0, 0], // 0x02000000 + version: hex_literal::hex!("30000038"), epoch: 0, }, capella: Fork { - version: [3, 0, 0, 0], // 0x03000000 + version: hex_literal::hex!("40000038"), epoch: 0, }, deneb: Fork { - version: [4, 0, 0, 0], // 0x04000000 + version: hex_literal::hex!("50000038"), epoch: 0, }, electra: Fork { - version: [5, 0, 0, 0], // 0x05000000 + version: hex_literal::hex!("60000038"), epoch: 0, }, }; diff --git a/operator/runtime/stagenet/src/configs/mod.rs b/operator/runtime/stagenet/src/configs/mod.rs index 1a805d3d..8e8312d8 100644 --- a/operator/runtime/stagenet/src/configs/mod.rs +++ b/operator/runtime/stagenet/src/configs/mod.rs @@ -1011,27 +1011,27 @@ impl snowbridge_pallet_system_v2::Config for Runtime { parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork { - version: [0, 0, 0, 0], // 0x00000000 + version: hex_literal::hex!("10000038"), epoch: 0, }, altair: Fork { - version: [1, 0, 0, 0], // 0x01000000 + version: hex_literal::hex!("20000038"), epoch: 0, }, bellatrix: Fork { - version: [2, 0, 0, 0], // 0x02000000 + version: hex_literal::hex!("30000038"), epoch: 0, }, capella: Fork { - version: [3, 0, 0, 0], // 0x03000000 + version: hex_literal::hex!("40000038"), epoch: 0, }, deneb: Fork { - version: [4, 0, 0, 0], // 0x04000000 + version: hex_literal::hex!("50000038"), epoch: 0, }, electra: Fork { - version: [5, 0, 0, 0], // 0x05000000 + version: hex_literal::hex!("60000038"), epoch: 0, }, }; diff --git a/operator/runtime/testnet/src/configs/mod.rs b/operator/runtime/testnet/src/configs/mod.rs index 1086d9a1..2eb9eff1 100644 --- a/operator/runtime/testnet/src/configs/mod.rs +++ b/operator/runtime/testnet/src/configs/mod.rs @@ -1011,27 +1011,27 @@ impl snowbridge_pallet_system_v2::Config for Runtime { parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork { - version: [0, 0, 0, 0], // 0x00000000 + version: hex_literal::hex!("10000038"), epoch: 0, }, altair: Fork { - version: [1, 0, 0, 0], // 0x01000000 + version: hex_literal::hex!("20000038"), epoch: 0, }, bellatrix: Fork { - version: [2, 0, 0, 0], // 0x02000000 + version: hex_literal::hex!("30000038"), epoch: 0, }, capella: Fork { - version: [3, 0, 0, 0], // 0x03000000 + version: hex_literal::hex!("40000038"), epoch: 0, }, deneb: Fork { - version: [4, 0, 0, 0], // 0x04000000 + version: hex_literal::hex!("50000038"), epoch: 0, }, electra: Fork { - version: [5, 0, 0, 0], // 0x05000000 + version: hex_literal::hex!("60000038"), epoch: 0, }, }; diff --git a/test/.papi/metadata/datahaven.scale b/test/.papi/metadata/datahaven.scale index 785873908668019487a710ea708bf99b782dac53..a8fcf2828f2336746c8f08a631f08a0c7fc441a7 100644 GIT binary patch delta 99 zcmaEUU*-9Im4+6^7N!>F7M2#)7Pc1lEgby%4gw4e77S3JfW$UHVmlzQ1CZDWKz6&o LKF4%_ea;yGty>PN delta 99 zcmaEUU*-9Im4+6^7N!>F7M2#)7Pc1lEgby%4h%?u5sA%&#AZffvmmiqf$VmFeU9n= H`kXTWPd*G8