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
+1 -4
View File
@@ -70,10 +70,7 @@ impl Alternative {
let properties = Some(
serde_json::json!({
"tokenDecimals": 9,
"tokenSymbol": "MLAU",
"bridgeIds": {
"Rialto": bp_runtime::RIALTO_CHAIN_ID,
}
"tokenSymbol": "MLAU"
})
.as_object()
.expect("Map given; qed")
+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!(