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>
This commit is contained in:
Svyatoslav Nikolsky
2022-10-04 11:44:38 +03:00
committed by Bastian Köcher
parent 75d61ff708
commit 4f4200b0eb
5 changed files with 8 additions and 6 deletions
@@ -61,6 +61,10 @@ pub struct RelayerRewards<Balance> {
/// All implementations of this trait should only work with finalized data that
/// can't change. Wrong implementation may lead to invalid lane states (i.e. lane
/// that's stuck) and/or processing messages without paying fees.
///
/// The `Payload` type here means the payload of the message that is sent from the
/// source chain to the target chain. The `AccountId` type here means the account
/// type used by the source chain.
pub trait TargetHeaderChain<Payload, AccountId> {
/// Error type.
type Error: Debug + Into<&'static str>;