Skip to content

Commit

Permalink
add fork version test
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 21, 2024
1 parent d2a343f commit c83a250
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions system-parachains/bridge-hub-paseo/tests/snowbridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ use cumulus_primitives_core::XcmError::{FailedToTransactAsset, TooExpensive};
use frame_support::{parameter_types, traits::Contains};
use parachains_common::{AccountId, AuraId, Balance};
pub use parachains_runtimes_test_utils::test_cases::change_storage_constant_by_governance_works;
use snowbridge_beacon_primitives::{Fork, ForkVersions};
use snowbridge_pallet_ethereum_client::WeightInfo;
use sp_core::H160;
use sp_keyring::AccountKeyring::Alice;
Expand Down Expand Up @@ -216,6 +217,35 @@ fn ethereum_to_paseo_message_extrinsics_work() {
);
}

#[test]
fn fork_versions_are_set_to_sepolia() {
assert_eq!(
ForkVersions {
genesis: Fork {
version: [0, 0, 0, 0], // 0x00000000
epoch: 0,
},
altair: Fork {
version: [1, 0, 0, 0], // 0x01000000
epoch: 74240,
},
bellatrix: Fork {
version: [2, 0, 0, 0], // 0x02000000
epoch: 144896,
},
capella: Fork {
version: [3, 0, 0, 0], // 0x03000000
epoch: 194048,
},
deneb: Fork {
version: [4, 0, 0, 0], // 0x04000000
epoch: 269568,
},
},
bridge_hub_paseo_runtime::bridge_to_ethereum_config::ChainForkVersions::get()
)
}

#[test]
fn ethereum_outbound_queue_processes_messages_before_message_queue_works() {
snowbridge_runtime_test_common::ethereum_outbound_queue_processes_messages_before_message_queue_works::<
Expand Down

0 comments on commit c83a250

Please sign in to comment.