6b597bebcf
- Fix pezpallet-welati EnsureOrigin implementations (3 fixes)
- Remove incorrect #[cfg(not(feature = "runtime-benchmarks"))] blocks
- Affects EnsureSerok, EnsureParlementer, EnsureDiwan
- Fix asset-hub-zagros governance origins macros (2 fixes)
- Remove non-benchmark try_successful_origin from decl_unit_ensures!
- Remove non-benchmark try_successful_origin from decl_ensure!
- Rename snowbridge -> pezsnowbridge for consistency
- Update WORKFLOW_PLAN.md with build status and package names
- Correct package names: pezkuwi-teyrchain-bin, pezstaging-node-cli
- Mark completed builds: pezkuwi, pezkuwi-teyrchain-bin,
pezstaging-node-cli, teyrchain-template-node
14 lines
415 B
Rust
14 lines
415 B
Rust
use crate::{ChannelId, ParaId};
|
|
use hex_literal::hex;
|
|
|
|
const EXPECT_CHANNEL_ID: [u8; 32] =
|
|
hex!("c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539");
|
|
|
|
// The Solidity equivalent code is tested in Gateway.t.sol:testDeriveChannelID
|
|
#[test]
|
|
fn generate_channel_id() {
|
|
let para_id: ParaId = 1000.into();
|
|
let channel_id: ChannelId = para_id.into();
|
|
assert_eq!(channel_id, EXPECT_CHANNEL_ID.into());
|
|
}
|