Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 5c91941

Browse files
svyatonikbkontur
andauthored
Use proper account types (#1591)
* use proper account types * Update primitives/messages/src/source_chain.rs Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com>
1 parent a1d25f3 commit 5c91941

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

bin/millau/runtime/src/rialto_messages.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl messages::BridgedChainWithMessages for Rialto {
236236
}
237237
}
238238

239-
impl TargetHeaderChain<ToRialtoMessagePayload, bp_rialto::AccountId> for Rialto {
239+
impl TargetHeaderChain<ToRialtoMessagePayload, bp_millau::AccountId> for Rialto {
240240
type Error = &'static str;
241241
// The proof is:
242242
// - hash of the header this proof has been created with;

bin/millau/runtime/src/rialto_parachain_messages.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ impl messages::BridgedChainWithMessages for RialtoParachain {
229229
}
230230
}
231231

232-
impl TargetHeaderChain<ToRialtoParachainMessagePayload, bp_rialto_parachain::AccountId>
233-
for RialtoParachain
234-
{
232+
impl TargetHeaderChain<ToRialtoParachainMessagePayload, bp_millau::AccountId> for RialtoParachain {
235233
type Error = &'static str;
236234
// The proof is:
237235
// - hash of the header this proof has been created with;

bin/rialto-parachain/runtime/src/millau_messages.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl messages::BridgedChainWithMessages for Millau {
243243
}
244244
}
245245

246-
impl TargetHeaderChain<ToMillauMessagePayload, bp_millau::AccountId> for Millau {
246+
impl TargetHeaderChain<ToMillauMessagePayload, bp_rialto_parachain::AccountId> for Millau {
247247
type Error = &'static str;
248248
// The proof is:
249249
// - hash of the header this proof has been created with;

bin/rialto/runtime/src/millau_messages.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl messages::BridgedChainWithMessages for Millau {
233233
}
234234
}
235235

236-
impl TargetHeaderChain<ToMillauMessagePayload, bp_millau::AccountId> for Millau {
236+
impl TargetHeaderChain<ToMillauMessagePayload, bp_rialto::AccountId> for Millau {
237237
type Error = &'static str;
238238
// The proof is:
239239
// - hash of the header this proof has been created with;

primitives/messages/src/source_chain.rs

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ pub struct RelayerRewards<Balance> {
6161
/// All implementations of this trait should only work with finalized data that
6262
/// can't change. Wrong implementation may lead to invalid lane states (i.e. lane
6363
/// that's stuck) and/or processing messages without paying fees.
64+
///
65+
/// The `Payload` type here means the payload of the message that is sent from the
66+
/// source chain to the target chain. The `AccountId` type here means the account
67+
/// type used by the source chain.
6468
pub trait TargetHeaderChain<Payload, AccountId> {
6569
/// Error type.
6670
type Error: Debug + Into<&'static str>;

0 commit comments

Comments
 (0)