Bridge/This Chain Ids should be exposed as constants on pallet level. (#1085)

* Adding BridgedChainId constant to message pallet

* Addressing PR feedback
This commit is contained in:
Hector Bulgarini authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent c99fb933ca
commit b1db3df199
6 files changed
+15 -9

No files matched your search

+2
View File
@@ -362,6 +362,7 @@ parameter_types! {
pub const GetDeliveryConfirmationTransactionFee: Balance =
bp_millau::MAX_SINGLE_MESSAGE_DELIVERY_CONFIRMATION_TX_WEIGHT as _;
pub const RootAccountForPayments: Option<AccountId> = None;
pub const BridgedChainId: bp_runtime::ChainId = bp_runtime::RIALTO_CHAIN_ID;
}
/// Instance of the messages pallet used to relay messages to/from Rialto chain.
@@ -397,6 +398,7 @@ impl pallet_bridge_messages::Config<WithRialtoMessagesInstance> for Runtime {
type SourceHeaderChain = crate::rialto_messages::Rialto;
type MessageDispatch = crate::rialto_messages::FromRialtoMessageDispatch;
type BridgedChainId = BridgedChainId;
}
construct_runtime!(