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
2021-08-06 10:24:08 -03:00
committed by Bastian Köcher
parent c99fb933ca
commit b1db3df199
6 changed files with 15 additions and 9 deletions
+2
View File
@@ -490,6 +490,7 @@ parameter_types! {
pub const GetDeliveryConfirmationTransactionFee: Balance =
bp_rialto::MAX_SINGLE_MESSAGE_DELIVERY_CONFIRMATION_TX_WEIGHT as _;
pub const RootAccountForPayments: Option<AccountId> = None;
pub const BridgedChainId: bp_runtime::ChainId = bp_runtime::MILLAU_CHAIN_ID;
}
/// Instance of the messages pallet used to relay messages to/from Millau chain.
@@ -524,6 +525,7 @@ impl pallet_bridge_messages::Config<WithMillauMessagesInstance> for Runtime {
type SourceHeaderChain = crate::millau_messages::Millau;
type MessageDispatch = crate::millau_messages::FromMillauMessageDispatch;
type BridgedChainId = BridgedChainId;
}
construct_runtime!(